conf下面有个web.xml的文件夹!!修改配置
<welcome-file-list>
<welcome-file>想跳的页面</welcome-file>
</welcome-file-list>server.xml里面修改端口!!
<welcome-file-list>
<welcome-file>想跳的页面</welcome-file>
</welcome-file-list>server.xml里面修改端口!!
解决方案 »
- i=++i+i++; 。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。
- java 如何生成声音文件?
- 请教一个runnable的问题
- struts2+Hibernian+spring实现分页
- 使用jsf时的错误:Error testing property 'name' in bean of type null。请大家帮帮忙
- 怎样人为设定Soap非限定命名空间(超难问题)
- 请教JAVA开发环境!!
- 关于网络中jndi的配置
- 这个异常我已经熬了一个星期了!求求大家帮我看看
- java怎么输出完整的html
- 2种建立web service的方式有什么区别??
- 我用eclipse+jboss怎样配置到可以单步debug,请大家帮忙
<Logger className="org.apache.catalina.logger.FileLogger" directory="logs" prefix="localhost_log." suffix=".txt" timestamp="true"/>后面加<Context path="/" docBase="aaa" debug="0" reloadable="true"/> aaa是你的在webapps下的工程的文件夹名。
mysite目录为您的应用,它和root目录平级<?xml version='1.0' encoding='utf-8'?>
<Context docBase="mysite" path="/" privileged="true" reloadable="true">
<Resource name="ConnPool"
auth="Container"
type="javax.sql.DataSource"/>
<ResourceParams name="ConnPool">
<parameter>
<name>factory</name>
<value>org.apache.commons.dbcp.BasicDataSourceFactory</value>
</parameter>
<!-- Maximum number of dB connections in pool. Make sure you
configure your mysqld max_connections large enough to handle
all of your db connections. Set to 0 for no limit.
-->
<parameter>
<name>maxActive</name>
<value>100</value>
</parameter>
<!-- Maximum number of idle dB connections to retain in pool.
Set to 0 for no limit.
-->
<parameter>
<name>maxIdle</name>
<value>30</value>
</parameter>
<!-- Maximum time to wait for a dB connection to become available
in ms, in this example 10 seconds. An Exception is thrown if
this timeout is exceeded. Set to -1 to wait indefinitely.
-->
<parameter>
<name>maxWait</name>
<value>10000</value>
</parameter>
<!-- MySQL dB username and password for dB connections -->
<parameter>
<name>username</name>
<value>root</value>
</parameter>
<parameter>
<name>password</name>
<value></value>
</parameter>
<!-- Class name for the old mm.mysql JDBC driver - uncomment this entry and comment next
if you want to use this driver - we recommend using Connector/J though
<parameter>
<name>driverClassName</name>
<value>org.gjt.mm.mysql.Driver</value>
</parameter>
-->
<!-- Class name for the official MySQL Connector/J driver -->
<parameter>
<name>driverClassName</name>
<value>org.gjt.mm.mysql.Driver</value>
<!--
<value>com.microsoft.jdbc.sqlserver.SQLServerDriver</value>
-->
</parameter>
<!-- The JDBC connection url for connecting to your MySQL dB.
The autoReconnect=true argument to the url makes sure that the
mm.mysql JDBC Driver will automatically reconnect if mysqld closed the
connection. mysqld by default closes idle connections after 8 hours.
-->
<parameter>
<name>url</name>
<value>jdbc:mysql://localhost:3306/mshome?autoReconnect=true</value>
<!--
<value>jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=mshome</value>
-->
</parameter>
</ResourceParams>
</Context>
unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false">
tomcat5.0.16以上是在conf\Catalina\localhost里加一个自己项目的xml,加的内容都一样:<Context path="jsp" docBase="d:\jsp" debug=0 reloadable="ture" crossContext="true" />