我试图复制我的春季网络应用程序 的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?