新闻中心
这篇文章主要介绍JNDI资源引用设置的示例分析,文中介绍的非常详细,具有一定的参考价值,感兴趣的小伙伴们一定要看完!
DataSource,JNDI, 资源引用设置 等
1.server.xml中配置主机应用上下文
type="javax.sql.DataSource"
driverClassName="com.mysql.jdbc.Driver"
removeAbandoned="true"
logAbandoned="true"
removeAbandonedTimeout="60"
password="pc"
maxIdle="10"
maxWait="5000"
username="pc"
url="jdbc:mysql://localhost:3306/petclinic?autoReconnect=true"
maxActive="50"/>
3. /META-INF/context.xml
type="javax.sql.DataSource"
driverClassName="com.mysql.jdbc.Driver"
removeAbandoned="true"
logAbandoned="true"
removeAbandonedTimeout="60"
password="pc"
maxIdle="10"
maxWait="5000"
username="pc"
url="jdbc:mysql://localhost:3306/petclinic?autoReconnect=true"
maxActive="50"/>
4.web.xml
公司名称:青羊区浩晨众云设计工作室(个体工商户) 联系电话:18980820575
内江浩晨众云建站 内江网站建设 内江网站设计 内江网站制作 成都做网站