我在context.xml中添加的标签何时被读取? [英] When is the tag I added in context.xml gets read?

查看:112
本文介绍了我在context.xml中添加的标签何时被读取?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Tomcatcontext.xml中,添加了以下标记:

In the context.xml of Tomcat I added the following tag :

    <Resource name="jdbc/MyDatasource" auth="Container" type="javax.sql.DataSource"
       driverClassName="org.apache.derby.jdbc.ClientDriver"
       url="jdbc:derby://localhost:1527/my_database;create=true"
       username="me" password="me"
       maxActive="20" maxIdle="10" maxWait="-1" />

何时读取以下标签?启动服务器时可以读取吗?

When does the following tag gets read ? Is it read when i start the server ?

推荐答案

部署应用程序时将读取此配置.如果启用了自动部署,则Tomcat将在启动期间部署您的Web应用.

This configuration is read when the application is deployed. If you have auto-deploy enabled, Tomcat will deploy your webapp during startup.

这篇关于我在context.xml中添加的标签何时被读取?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆