web.xml里<init-param>报错

来源:互联网 发布:商之翼 yii框架 源码 编辑:程序博客网 时间:2024/05/21 19:36
Description ResourcePathLocationType

cvc-complex-type.2.4.a: Invalid content was found starting with element 'init-param'. One of '{"http://java.sun.com/xml/ns/javaee":enabled, "http://java.sun.com/xml/ns/javaee":async-supported, "http://java.sun.com/xml/ns/javaee":run-as, "http://java.sun.com/xml/ns/javaee":security-role-ref, "http://java.sun.com/xml/ns/javaee":multipart-config}' is expected.web.xml/WebContent/WEB-INFline 40XML Problem


控制台报错:严重: Servlet /*** threw load() exception
java.lang.ClassNotFoundException: MyApplication


敢情<init-param>要放在<load-on-startup>1</load-on-startup>上边

6 0
原创粉丝点击