resin.conf下加入
<database>
<jndi-name>test/db</jndi-name>
<driver type="net.sourceforge.jtds.jdbc.Driver">
<url>jdbc:jtds:sqlserver://192.168.0.12:1433/test</url>
<user>aaa</user>
<password>123456</password>
</driver>
<prepared-statement-cache-size>8</prepared-statement-cache-size>
<max-connections>20</max-connections>
<max-idle-time>30s</max-idle-time>
</database>
本文详细介绍了在resin服务器中配置数据库连接的过程,包括设置JNDI名称、指定驱动类型、URL、用户名和密码等关键信息,并配置了缓存大小、最大连接数和最大空闲时间。
1940

被折叠的 条评论
为什么被折叠?



