abel533 / Mybatis-Spring

这是一个集成了Mybatis分页插件和通用Mapper的示例项目
942 stars 610 forks source link

使用spring4.1.2时,mybatis spring的配置文件的xml schema要更新 #8

Open bylijinnan opened 8 years ago

bylijinnan commented 8 years ago

要改成如下: <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:context="http://www.springframework.org/schema/context" xmlns:mvc="http://www.springframework.org/schema/mvc" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.0.xsd http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-4.0.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.0.xsd">

否则会报: Caused by: org.xml.sax.SAXParseException; lineNumber: 50; columnNumber: 11; cvc-complex-type.2.4.a: 发现了以元素 'array' 开头的无效内容

darren2900 commented 7 years ago

@bylijinnan 怎么更新?

abel533 commented 7 years ago

新的 schema 是什么?