[spring]Attribute scope must be declared for element type bean
生活随笔
收集整理的這篇文章主要介紹了
[spring]Attribute scope must be declared for element type bean
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
原來Attribute "scope"? 在spring2.0以后支持,改一下配置文件即可
spring的XML配置文件的這個:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN"
??? "http://www.springframework.org/dtd/spring-beans.dtd">
改成這個就可以了:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN 2.0//EN"
??? "http://www.springframework.org/dtd/spring-beans-2.0.dtd">
?
?
轉載于:https://www.cnblogs.com/fgm119/p/3675764.html
總結
以上是生活随笔為你收集整理的[spring]Attribute scope must be declared for element type bean的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 【Mac软件推荐】Alfred:Mac下
- 下一篇: 5.0:Spring-bean的加载