小编ctr*_*ace的帖子

Servlet 3.0 Spring Java配置JNDI

我试图复制我的春季网络应用程序 的resource-ref属性来配置JNDI.web.xmlWebApplicationInitializer

我该怎么做:

<resource-ref>
<description>Connection Pool</description>
<res-ref-name>jdbc/LocalCheddar</res-ref-name>
<res-type>javax.sql.Datasource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
Run Code Online (Sandbox Code Playgroud)

在java配置而不是xml?

java spring config servlet-3.0

12
推荐指数
1
解决办法
6147
查看次数

标签 统计

config ×1

java ×1

servlet-3.0 ×1

spring ×1