数据源和JNDI,使用注释春天MVC应用程序通信的创建 [英] Creation of Data source and JNDI, communication in spring MVC application using annotation

查看:168
本文介绍了数据源和JNDI,使用注释春天MVC应用程序通信的创建的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建使用Spring MVC的3.0.Now我想我的应用程序连接到使用JNDI和注释数据库的演示应用。我在网上搜索,但
没有找到任何很好的例子。

I am creating a demo application using Spring mvc 3.0.Now i wants to connect the my application to the data base using "JNDI" and annotations. I am searching on the web,but not find any good example.

我希望有人可以给我一个很好的链接,我可以为带有注释和JNDI的帮助DB层沟通的注解驱动的Spring MVC应用程序一步一步学习

Hopefully somebody could give me a good link where I could learn step by step for the annotation driven spring mvc application that communicate with the db layer with the help of annotation and JNDI.

推荐答案

您需要的是

<jee:jndi-lookup/>

检查此链接<一个href=\"http://static.springsource.org/spring/docs/3.0.x/spring-framework-reference/html/xsd-config.html#xsd-config-body-schemas-jee-jndi-lookup\" rel=\"nofollow\">http://static.springsource.org/spring/docs/3.0.x/spring-framework-reference/html/xsd-config.html#xsd-config-body-schemas-jee-jndi-lookup有关使用JNDI查找信息。其余的结构与应用,而无需JNDI。

check this link http://static.springsource.org/spring/docs/3.0.x/spring-framework-reference/html/xsd-config.html#xsd-config-body-schemas-jee-jndi-lookup for info on using JNDI lookup . Remaining configurations are similar to app without JNDI .

检查样本<一个href=\"http://www.gridshore.nl/blog/index.php?/archives/71-Loading-properties-using-JNDI-within-the-springframework-deployed-on-tomcat.html\"相对=nofollow>这里

这篇关于数据源和JNDI,使用注释春天MVC应用程序通信的创建的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆