Mybatis-Spring icon indicating copy to clipboard operation
Mybatis-Spring copied to clipboard

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

Open bylijinnan opened this issue 9 years ago • 2 comments

要改成如下:

<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' 开头的无效内容

bylijinnan avatar Feb 21 '16 15:02 bylijinnan

@bylijinnan 怎么更新?

darren2900 avatar Jun 30 '17 08:06 darren2900

新的 schema 是什么?

abel533 avatar Jul 01 '17 08:07 abel533