//Tomcat下/conf/context.xml的配置
<!-- The contents of this file will be loaded for each web application -->
<Context path="by"
docBase="E:\Apache Software Foundation\Tomcat 6.0\webapps\by"
debug="5"
reloadable="true"
crossContext="true">
<!-- Default set of monitored resources -->
<WatchedResource>WEB-INF/web.xml</WatchedResource>
<!-- Uncomment this to disable session persistence across Tomcat restarts -->
<!--
<Manager pathname="" />
-->
<Resource
name="jdbc/by"
auth="Container"
type="javax.sql.DataSource"
driverClassName="com.mysql.jdbc.Driver"
maxIdle="100"
maxWait="5000"
removeAbandoned="true"
logAbndoned="true"
removeAbandonedTimeout="60"
username="root"
password="root"
url="jdbc:mysql://localhost:3306/by?unicode=true&characterEncoding=UTF-8"
maxActive="4"/>
</Context>
Tomcat下JNDI数据源配置
最新推荐文章于 2022-05-07 13:21:04 发布
本文详细介绍了Tomcat服务器中conf/context.xml文件的具体配置方法,包括如何设置应用路径、资源监控、会话管理和数据库连接池等关键参数。
6172

被折叠的 条评论
为什么被折叠?



