本文主要是介绍spring中jee:jndi-lookup的使用,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
applicationContext.xml
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:jee="http://www.springframework.org/schema/jee" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.0.xsd http://www.springframework.org/schema/jee http://www.springframework.org/schema/jee/spring-jee-4.0.xsd"> <jee:jndi-lookup id="dataSource" jndi-name="jdbc/mysql"/>
</beans>
这篇关于spring中jee:jndi-lookup的使用的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!