huang18720963745
huang18720963745
采纳率37.2%
2018-08-19 06:28 阅读 1.0k

关于spring集成mybatis的问题,请大神帮忙解决一下

5

严重: Allocate exception for servlet [springmvc]
org.xml.sax.SAXParseException; systemId: http://www.springframework.org/schema/mvc/spring-mvc-3.2.xsd; lineNumber: 23; columnNumber: 20; cos-all-limited.1.2: An ''all'' model group must appear in a particle with '{'min occurs'}'='{'max occurs'}'=1, and that particle must be part of a pair which constitutes the '{'content type'}' of a complex type definition.
上面是错误的信息,下面的配置文件的截图
图片说明

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享

4条回答 默认 最新

  • oyljerry oyljerry 2018-08-19 06:55

    sax解析出错了,是不是XML有字段配置不正确

    点赞 评论 复制链接分享
  • fosteryang fosteryang 2018-08-19 14:59

    springmvc和commons-dbcp的版本冲突。可以参考:http://hebad90.iteye.com/blog/1961248

    点赞 评论 复制链接分享
  • zhaomin_g _zming 2018-08-20 01:11

    lineNumber: 23; columnNumber: 20; cos-all-limited.1.2: An ''all'' model group must appear in a particle with '{'min occurs'}'='{'max occurs'}'=1, and that particle must be part of a pair which constitutes the '{'content type'}' xml配值不合法

    点赞 评论 复制链接分享
  • weixin_41386123 coder_xiaozhao 2018-08-20 02:44

    可能是 jar 包冲突了,查看一下Spring或者Spring MVC与commons -dbcp 的版本。


    commons-dbcp

    commons-dbcp

    1.4

    点赞 评论 复制链接分享

相关推荐