<Resource
name="oracle/blah"
auth="Container"
type="javax.sql.DataSource"
driverClassName="oracle.jdbc.OracleDriver"
url="jdbc:oracle:thin:@localhost:1521:TEST"
username="scott"
password="scott"
maxIdle="5"
maxWait="5000"
maxActive="10"/>


打开 tomcat/conf/context.xml 文件,复制到<Context></Context>之中,

 

 

<bean ></property>
</bean>

 

spring引用tomcat数据源

 

在tomcat 5.5 tomcat 6.0都可以正常使用

相关文章:

  • 2021-11-21
  • 2021-12-05
  • 2022-03-02
  • 2022-01-01
  • 2021-12-11
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-02-13
  • 2021-10-04
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案