创建数据源和JNDI,使用注释在Spring MVC应用程序中进行通信

发布于 2024-12-20 20:39:47 字数 172 浏览 1 评论 0 原文

我正在使用 Spring mvc 3.0 创建一个演示应用程序。现在我想使用“JNDI”和注释将我的应用程序连接到数据库。我正在网上搜索,但是 找不到任何好的例子。

希望有人能给我一个很好的链接,我可以在其中逐步学习注释驱动的 spring mvc 应用程序,该应用程序借助注释和 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.

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.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

勿忘心安 2024-12-27 20:39:48

您需要的是

<jee:jndi-lookup/>

检查此链接

检查示例 此处

what you need is

<jee:jndi-lookup/>

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 .

Check a sample here

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文