" or "/>"." />
zoukankan      html  css  js  c++  java
  • Element type "Resource" must be followed by either attribute specifications, ">" or "/>".

    配置数据源是出现这个错误: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个靠的太近了。如图:

  • 相关阅读:
    如何运行vue项目
    java string型时间转long
    龙果学院dubbo
    百度网盘
    百度网盘资源搜索
    charles安装
    charles抓包
    lr报告分析
    一些缩写意思
    带有事务的进入首页、登录、登出脚本
  • 原文地址:https://www.cnblogs.com/luleiitlife/p/8545103.html
Copyright © 2011-2022 走看看