%TOMCAT_HOME%/conf/Catalina/localhost/下
添加xml文件,配置如下:
<Context docBase="E:\tfs\新理赔辅助平台\Releases\V1.1.2.4\webapp" reloadable="false" privileged="true" antiResourceLocking="false" antiJARLocking="false">
<!-- 配置数据源 -->
<Resource name="claimDataSource" driverClassName="com.informix.jdbc.IfxDriver"
url="jdbc:informix-sqli:11.137.136.4:16001/picccar_aux:INFORMIXSERVER=test2;NEWCODESET=gbk,8859-1,819;IFX_USE_STRENC=true"
username="lpfz"
password="lpfz"
type="javax.sql.DataSource"
maxActive="4"
maxIdle="2"
maxWait="5000"/>
</Context>