解决Spring整合SpringMVC时——contextConfigLocation报错

报错:

 Invalid content was found starting with element 'init-param'. One of '{"http://java.sun.com/xml/ns/javaee":run-as, "http://java.sun.com/xml/ns/javaee":security-role-ref}' is expected.

 

报错位置:

1
        
            configLocation
            classpath:springmvc.xml
            

解决办法:

移动1位置;

改为:


       configLocation
       classpath:springmvc.xml
   

 1

你可能感兴趣的:(spring)