---
title: "javax.naming.NameNotFoundException: Name jdbc is not bound in this Context"
author: "hellostory"
date: "2010-12-08T11:34:00Z"
tags: []
slug: "javax-naming-namenotfoundexception-name-jdbc-is-not-bound-in-this-context"
draft: false
lastmod: "2010-12-08T11:34:00Z"
id: 964183
url: "https://hellostory.iteye.com/blog/964183"
---

**解决方法：**

将applicationContext.xml中的数据源配置：

改为：

**说明：**这里使用Tomcat提供的JNDI，且其配置文件放在web工程的“META-INF/context.xml”文件中