![](/img/trans.png)
[英]org.xml.sax.SAXParseException; lineNumber: 10; columnNumber: 24; Attribute “singleton” must be declared for element type “bean”
[英]Spring 4.3.4 with weblogic 12.1 Causing org.xml.sax.SAXParseException;Attribute “singleton” must be declared for element type “bean”
升级到Spring 4.3.4 时,我面临以下异常
嵌套异常是 org.xml.sax.SAXParseException; 必须在 xmls 之一中为元素类型“bean”声明属性“singleton”。
我尝试了所有类似的方法
1) Manually gave scope="Singleton" 2) Removed the scope since by default scope is Singleton 3) Gave Singleton="false" 4) Gave scope="prototype" to check..
这是我正在使用的 DTD
我多次清理存储库但没有运气。我一直遇到同样的异常。 我正在使用与 spring 相同版本的 weblogic 12.1 和 spring-beans.dtd。 任何帮助,将不胜感激。
TIA。
问候普拉迪普
您是否在 spring 配置 xml 文件中验证了 XSD? 确保为 Spring 4.3 使用正确的 XML 模式。
你能从配置文件中发布代码的和平吗?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.