ContextLoader.initWebApplicationContext错误创建名为“dataSource”的bean在ServletContext资源/WEB/xaconfig/daoJPAConfig.xml中定义:调用init方法失败;嵌套的例外是javax.naming.NameNotFoundException: Name java:comp在此上下文中不绑定在org.springframework.beans.factory.support.Abstract
抛出以下异常
“请确保J2EE应用程序不在静态代码块或该J2EE应用程序创建的线程中对"java:”名称执行JNDI操作。[根异常是在上下文”java:“”中找不到的javax.naming.NameNotFoundException: Name comp/env/jdbc。[Root exception is <e