Element type "Resource" must be followed by either attribute specifications, ">" or "/>".
来源:互联网 发布:达芬奇调色 mac 编辑:程序博客网 时间:2024/06/10 16:59
配置数据源是出现这个错误:Element type "Resource" must be followed by either attribute specifications, ">" or "/>".
搞了半天找不到
<Resource name="jdbc/epai"
auth="Container"type="javax.sql.DataSource" maxActive="100"
maxIdle="30" maxWait="10000" username="sa" password="accp"
driverClassName="com.microsoft.sqlserver.jdbc.SQLServerDriver"
url="jdbc:sqlserver://localhost:1433;databaseName=epai" >
</Resource>
在context.xml中配置的这个没一点问题,用IT把这个xml文件打开时才发现错误了, auth="Container"type=。。这个地方中间要有空格。2个靠的太近了。如图:
- Element type "Resource" must be followed by either attribute specifications, ">" or "/>".
- Element type "Resource" must be followed by either attribute specifications, ">" or "/>".
- Element type "Resource" must be followed by either attribute specifications, ">" or "/>".
- Element type "bean" must be followed by either attribute specifications, ">"
- org.xml.sax.SAXParseException: Element type "beans" must be followed by either attribute specifications, ">" or "/>".
- Element type "action" must be followed by either attribute specifications, ">" or "/>".
- 项目启动时报错Element type "property" must be followed by either attribute specifications, ">" or "/>"
- Element type "EditText" must be followed by either attribute specifications, ">" or "/>".
- Element type "import" must be followed by either attribute specifications, ">" or "/>".
- Element type “property” must be followed by either attribute specifications, “>” or “/>”
- 【解决】Element type "typename" must be followed by either attribute specifications, ">" or "/>".
- Element type "EditText" must be followed by either attribute specifications, ">" or "/>".
- soap发报文出错:Element type soapenv:Envelope must be followed by either attribute specifications+ >+
- 出现错误 Element type "LinearLayout" must be followed by either attribute specification,">"or"/>"的解决办法
- Attribute name "aphmodel" associated with an element type "mxg" must be followed by the ' = ' charac
- Attribute "resource" must be declared for element type "mapper".
- FAQ(4):Attribute "resource" must be declared for element type "mapper".
- Attribute "resultType" must be declared for element type "update" or "insert"
- hdoj 1698--Just a Hook 线段树练习
- LA 3263 - That Nice Euler Circuit 欧拉定理
- Spring Security起步
- hdu 1711 number sequence
- hdoj 1406 衰( ⊙ o ⊙ )!
- Element type "Resource" must be followed by either attribute specifications, ">" or "/>".
- Javascript中三个等号与两个等号的区别
- uva839
- python 搭建的服务器上面 运行项目出错的记录
- MySQL 远程登录与其常用命令的介绍
- hdu 1853 Cyclic Tour(费用流OR二分图最佳匹配,5级)
- android 注册、登录实现程序
- hdu 2544 最短路(最短路第一弹)
- WebService