eclipse添加新web程序的方法
2013-02-23 10:36
148 查看
在conf\Catalina\localhost目录下添加myweb.xml文件,内容如下
<?xml version="1.0" encoding="gbk"?>
<!-- The contents of this file will be loaded for each web application -->
<CONTEXT docBase="E:/java/code/myweb" path="/myweb" reloadable="false" crossContext="true"><!-- Default set of monitored resources --><WATCHEDRESOURCE>WEB-INF/web.xml</WATCHEDRESOURCE>
<!-- Uncomment this to disable session persistence across Tomcat restarts --><!--
<Manager pathname="" />
--><!-- Uncomment this to enable Comet connection tacking (provides events
on session expiration as well as webapp lifecycle) --><!--
<Valve className="org.apache.catalina.valves.CometConnectionManagerValve" />
-->
<RESOURCE url="jdbc:mysql://localhost:3309/peonyoamain?autoReconnect=true" name="jdbc/ds" auth="Container" type="javax.sql.DataSource" driverClassName="com.mysql.jdbc.Driver" username="root" password="123456" maxActive="200" maxIdle="50" maxWait="1000" />
</CONTEXT>
<?xml version="1.0" encoding="gbk"?>
<!-- The contents of this file will be loaded for each web application -->
<CONTEXT docBase="E:/java/code/myweb" path="/myweb" reloadable="false" crossContext="true"><!-- Default set of monitored resources --><WATCHEDRESOURCE>WEB-INF/web.xml</WATCHEDRESOURCE>
<!-- Uncomment this to disable session persistence across Tomcat restarts --><!--
<Manager pathname="" />
--><!-- Uncomment this to enable Comet connection tacking (provides events
on session expiration as well as webapp lifecycle) --><!--
<Valve className="org.apache.catalina.valves.CometConnectionManagerValve" />
-->
<RESOURCE url="jdbc:mysql://localhost:3309/peonyoamain?autoReconnect=true" name="jdbc/ds" auth="Container" type="javax.sql.DataSource" driverClassName="com.mysql.jdbc.Driver" username="root" password="123456" maxActive="200" maxIdle="50" maxWait="1000" />
</CONTEXT>
相关文章推荐
- eclipse没有(添加)"Dynamic Web Project"选项的方法
- eclipse没有(添加)"Dynamic Web Project"选项的方法
- eclipse下添加GCC编译器的编译链接库以及程序运行参数方法
- eclipse下添加GCC编译器的编译链接库以及程序运行参数方法
- eclipse没有(添加)"Dynamic Web Project"选项的方法
- 一种将web项目快速添加到eclipse tomcat server的方法
- eclipse没有(添加)"Dynamic Web Project"选项的方法
- eclipse没有(添加)"Dynamic Web Project"选项的方法
- eclipse下添加GCC编译器的编译链接库以及程序运行参数方法
- eclipse没有(添加)”Dynamic Web Project”选项的方法
- eclipse没有(添加)"Dynamic Web Project"选项的方法
- 解决MyEclipse 的Web项目移植到Eclipse中无法添加到Tomcat的方法
- eclipse没有(添加)"Dynamic Web Project"选项的方法【转载】
- eclipse没有(添加)”Dynamic Web Project”选项的方法
- eclipse没有(添加)"Dynamic Web Project"选项的方法
- Eclipse添加maven之后报错 Eclipse is running in a JRE, but a JDK is required 解决方法
- Eclipse中将Java项目转换成Web项目的方法
- Eclipse+Maven(webapp)+Jetty+JReBel的配置方法
- Eclipse Tomcat添加web项目 add and remove找不到项目
- eclipse新建的web程序,其后创建了一个jsp文件,第一行就出现红叉