nick714 2011-02-21 10:24
浏览 344
已采纳

spring命名空间可以本地化吗??

[color=red] [size=large] xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:aop="http://www.springframework.org/schema/aop"
xmlns:tx="http://www.springframework.org/schema/tx"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.0.xsd
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.0.xsd">

启动tomcat时,启动spring会自动去spring官网寻找文件,但是如果没有网络或者spring官网出现问题的话,就会报错cvc-elt.1: Cannot find the declaration of element 'beans',那么,可以将这些本地化吗?希望得到指点,再次先表示感谢![/size][/color]
  • 写回答

2条回答 默认 最新

  • 「已注销」 2011-02-22 09:19
    关注

    兄弟,你用的是2.5的包吧!
    不过你定义时使用了3.0所以会到网上去找,把3.0修改为2.0就可以了

    [code="xml"]
    http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
    [/code]

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 kylin启动报错log4j类冲突
  • ¥15 超声波模块测距控制点灯,灯的闪烁很不稳定,经过调试发现测的距离偏大
  • ¥15 import arcpy出现importing _arcgisscripting 找不到相关程序
  • ¥15 onvif+openssl,vs2022编译openssl64
  • ¥15 iOS 自定义输入法-第三方输入法
  • ¥15 很想要一个很好的答案或提示
  • ¥15 扫描项目中发现AndroidOS.Agent、Android/SmsThief.LI!tr
  • ¥15 怀疑手机被监控,请问怎么解决和防止
  • ¥15 Qt下使用tcp获取数据的详细操作
  • ¥15 idea右下角设置编码是灰色的