weblogic spring jndi oracle
2016-12-12 本文已影响0人
冷酷的温柔
1.进入weblogic后台
http://localhost:7001/console
2. 选择数据源
![](https://img.haomeiwen.com/i3500818/713b60784a4e0ef3.png)
3. 点击新建一般数据源
![](https://img.haomeiwen.com/i3500818/a3e98f99289b3a50.png)
4. 配置基本信息
![](https://img.haomeiwen.com/i3500818/40b3513ac52e1fe4.png)
5. 选择数据库驱动
![](https://img.haomeiwen.com/i3500818/3c5fe524938fd8a6.png)
6. 事务,保持默认直接下一步
![](https://img.haomeiwen.com/i3500818/6bd04bb94bcff5d4.png)
7. 配置连接属性
![](https://img.haomeiwen.com/i3500818/4e9b440eea8592e6.png)
8. 测试连接
![](https://img.haomeiwen.com/i3500818/30fef5b302aa1acd.png)
9. 勾引目标,配置完成
![](https://img.haomeiwen.com/i3500818/43ad63d33082fe26.png)
10.找到spring数据源配置文件,加入jee命名空间
xmlns:jee="http://www.springframework.org/schema/jee"
http://www.springframework.org/schema/jee
http://www.springframework.org/schema/jee/spring-jee.xsd
11, 配置数据源
<jee:jndi-lookup id="dataSource" jndi-name="alipayDataSource"
cache="true" resource-ref="true" lookup-on-startup="true"
proxy-interface="javax.sql.DataSource">
</jee:jndi-lookup>