Element type "Resource" must be followed by either attribute specifications, ";"
Posted 陆陆通通
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Element type "Resource" must be followed by either attribute specifications, ";"相关的知识,希望对你有一定的参考价值。
配置数据源是出现这个错误: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, ";"的主要内容,如果未能解决你的问题,请参考以下文章
strus2配置strus.xml问题-The content of element type "package" must match "(result-types?,
转The content of element type "configuration" must match "(properties?,settings?,typ
Element type "Resource" must be followed by either attribute specifications, ";"
hibernate配置文件 The content of element type "class" must match
Open quote is expected for attribute "{1}" associated with an element type "
Attribute "resultType" must be declared for element type "update" or "inser