maven项目新建服务器启动时发生如下异常:
Related cause:
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'db-0-url': Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: Name [db-0-url] is not bound in this Context. Unable to find [db-0-url].Caused by: javax.naming.NameNotFoundException: Name [db-0-url] is not bound in this Context. Unable to find [db-0-url].
这中异常是因为没有配置tomcat中的tomcat-context.xml,tomcat-server.xml这两个文件。

遇到Maven项目新建服务器启动时出现BeanCreationException和NameNotFoundException异常?本教程将指导您如何正确配置tomcat的tomcat-context.xml和tomcat-server.xml文件,解决该问题。
371

被折叠的 条评论
为什么被折叠?



