Wait" value="5000" /> <set-property property="autoCommit" value="true" /> <set-property property="defaultAutoCommit" value="true" /> <set-property property="defaultReadOnly" value="false" /> </data-source> </data-sources>web.xml(1)<servlet>为固定<servlet> <servlet-name>action</servlet-name> <servlet-class>org.apache.struts.action.ActionServlet</servlet-class> <init-param> <param-name>config</param-name> <param-value>/WEB-INF/struts-config.xml</param-value> </init-param> <load-on-startup>2</load-on-startup> </servlet>(2)<servlet-mapping><!-- Standard Action Servlet Mapping --> <servlet-mapping> <servlet-name>action</servlet-name> <url-pattern>*.do</url-pattern> </servlet-mapping>(3)<taglib><taglib> <taglib-uri>/WEB_INF/struts-bean.tld</tablib> <taglib-location>/WEB_INF/struts-bean.tld</tablib-location></taglib>(4)<welcome-file-list><welcome-file-list> <welcome-file>index.html</welcome-file> <welcome-file>index.htm</welcome-file> <welcome-file>index.jsp</welcome-file> <welcome-file>default.html</welcome-file> <welcome-file>default.htm</welcome-file> <welcome-file>default.jsp</welcome-file> </welcome-file-list>database.properties :数据库链接池(1)ncr.connection.driver_class=oracle.jdbc.driver.OracleDriverncr.connection.url=jdbc:oracle:thin:@192.168.100.53:1521:ora9incr.connection.username=E_ljx_0118ncr.connection.password=E_ljx_0118#ncr.connection.pool_size=#ncr.connection.datasource=ncr.dbcp.maxActive=20ncr.dbcp.maxIdle=1ncr.dbcp.maxWait=20000ncr.dbcp.whenExhaustedAction=0ncr.dbcp.testOnBorrow=falsencr.dbcp.testOnReturn=falsencr.dbcp.validationQuery=ncr.dbcp.ps.maxActive=50ncr.dbcp.ps.maxIdle=5ncr.dbcp.ps.maxWait=5ncr.dbcp.ps.whenExhaustedAction=0