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这两个文件。