cvc-complex-type.2.4.a: Invalid content was found starting with element 'init-param'.
2016-06-28 10:39
453 查看
web.xml文件中:
第六行报错,报错信息如下:
解决办法:
将4、5行移到9行和10行之间,最终效果如下:
<servlet> <servlet-name>Zblog</servlet-name> <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class> <load-on-startup>1</load-on-startup> <async-supported>true</async-supported> <init-param> <param-name>contextConfigLocation</param-name> <param-value>classpath:config/spring-servlet.xml</param-value> </init-param> </servlet>
第六行报错,报错信息如下:
cvc-complex-type.2.4.a: 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, "http:// java.sun.com/xml/ns/javaee":multipart-config}' is expected.
解决办法:
将4、5行移到9行和10行之间,最终效果如下:
<servlet> <servlet-name>Zblog</servlet-name> <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class> <init-param> <param-name>contextConfigLocation</param-name> <param-value>classpath:config/spring-servlet.xml</param-value> </init-param> <load-on-startup>1</load-on-startup> <async-supported>true</async-supported> </servlet>
相关文章推荐
- modbus RTU/TCP,网络回复
- C++ STL set容器常用用法
- mac 配置tomcat
- AndroidStudio 添加依赖 出现的问题
- iOS中的谓词(NSPredicate)使用
- Angular.js学习笔记
- 303. Range Sum Query - Immutable
- spring+springMVC+ibatis集成示例
- iOS中UIButton的setImage方法和setBackgroundImage方法区别
- 设计模式教程
- 线性表-约瑟夫问题(数据结构基础 第2周)
- 假如时光能够倒流, 我会这么学习Java
- 中文分词词性对照表
- orcal 数据库 sql语句优化总结
- 利用函数指针实现动态库的动态调用——函数指针正向调用法
- Java基础之——快速失败&安全失败(最全的总结)
- Quartz2D简单介绍
- WIN MySQL设置可以远程访问
- php fsockopen多线程实现
- Android ORM 框架之 greenDAO