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


    开启打怪升级之旅
  • 相关阅读:
    LINQ基础——WHERE子句
    LINQ基础——LET子句
    LINQ基础——FROM子句
    Guid(全局统一标识符)
    ??运算符
    多线程的AutoResetEvent
    线程池(ThreadPool)
    Mutex
    Monitor类实现线程同步
    【java框架】MyBatis(7)--MyBatis注解开发
  • 原文地址:https://www.cnblogs.com/zhangliwei/p/7224131.html
Copyright © 2011-2022 走看看