zoukankan      html  css  js  c++  java
  • 关于ssm整合过程中,spring配置文件无提示功能

    问题原因:spring约束,导致.xsd文件导入失败

    解决措施:

    1:确保Spring配置文件的头信息导入正确(我的是spring4.0)

    <beans xmlns="http://www.springframework.org/schema/beans"
    xmlns:context="http://www.springframework.org/schema/context" xmlns:p="http://www.springframework.org/schema/p"
    xmlns:aop="http://www.springframework.org/schema/aop" xmlns:tx="http://www.springframework.org/schema/tx"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.0.xsd
    http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.0.xsd
    http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-4.0.xsd http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-4.0.xsd
    http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-4.0.xsd">

    </beans>

    2:bean标签内即为相应.xsd的链接

    3:添加.xsd的配置

    Windows-->preference-->xml-->xml catalog

    查看是否有报错信息,有的话,点击右侧edit-->Location  添加.xsd文件的地址即可

    无报错信息,则点击右侧 add,添加xsd文件的地址即可 Key type-->URI 

    Location处为.xsd文件的地址


    开启打怪升级之旅
  • 相关阅读:
    springboot 打包部署
    mybatis 插入空值时报错 TypeException
    margin 居中
    node.js 开发命令行工具 发布npm包
    webstorm vue环境设置
    vue数组操作不触发前端重新渲染
    数字英文超过宽度不换行问题
    Jquery checkbox 遍历
    小图标垂直居中
    vue this.$router.push 页面不刷新
  • 原文地址:https://www.cnblogs.com/zhangliwei/p/7224131.html
Copyright © 2011-2022 走看看