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這兩個文件。