配置 tomcat

配置 tomcat server.xml


<Host name="wap.kaifa.com" appBase="webapps"
       unpackWARs="true" autoDeploy="true"
       xmlValidation="false" xmlNamespaceAware="false">
   <Context path="" docBase="/var/wwwroot/wap"

debug="0" reloadable="true"/>
   <Valve

className="org.apache.catalina.valves.AccessLogValve"
    directory="logs" 

prefix="wap.kaifa.com.access_log." suffix=".log"
    pattern="combined"

fileDateFormat="yyyy-MM-dd" resolveHosts="false"/>
      </Host>


  context.xml

配置数据源
 <Resource name="jdbc/wap"      
              auth="Container" type="javax.sql.DataSource" 
              driverClassName="com.mysql.jdbc.Driver" 
              maxIdle="5000" 
              maxWait="3000" 
              username="develop" 
              password="develop123456" 
              url="jdbc:mysql://192.168.0.192:3306/wap"      
              maxActive="5"  
              removeAbandoned="true" 
              removeAbandonedTimeout="50000" 
              logAbandoned="true"/>

你可能感兴趣的:(tomcat,mysql,jdbc,SQL Server,WAP)