Web.xml中的错误“元素 – 此处不允许
大家好,我的Web.xml有问题。 我在这里不允许使用以下错误元素。 这是我的Web.xml
Spring MVC Application MySQL Test App DB Connection jdbc/mobile javax.sql.DataSource Container contextConfigLocation /WEB-INF/spring-config.xml springSecurityFilterChain org.springframework.web.filter.DelegatingFilterProxy springSecurityFilterChain /* org.springframework.web.context.ContextLoaderListener mvc-dispatcher org.springframework.web.servlet.DispatcherServlet contextConfigLocation /WEB-INF/spring-config.xml 1 mvc-dispatcher / login.jsp
我在这一行得到错误。
DB Connection jdbc/mobile javax.sql.DataSource Container
在这一行。
org.springframework.web.context.ContextLoaderListener
并且不是全部,每当我启动项目时(使用tomcat8),我都不会遇到任何编译错误。 我的Web应用程序启动就像正常一样。 我在这做错了什么?