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文件的地址


    开启打怪升级之旅
  • 相关阅读:
    ADB命令无法导出文件到物理机上处理办法
    mysql 分页offset过大性能问题解决思路
    0.通用编程基础
    win10去除快捷方式小箭头
    Java经典编程题
    win10家庭版打开组策略
    js常用事件列表
    计算器 输入式子计算结果 (字符串、抛异常)
    题库
    MyEclipse自动补全设置
  • 原文地址:https://www.cnblogs.com/zhangliwei/p/7224131.html
Copyright © 2011-2022 走看看