Skip to content

Commit 743edfb

Browse files
committed
Remove xsd version number from spring bean definition file for test
fix gh-178
1 parent 6d8a222 commit 743edfb

17 files changed

+26
-34
lines changed

src/test/java/org/mybatis/spring/batch/applicationContext.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@
2525
xmlns:tx="http://www.springframework.org/schema/tx"
2626
xmlns:jdbc="http://www.springframework.org/schema/jdbc"
2727
xsi:schemaLocation="
28-
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
29-
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.0.xsd
30-
http://www.springframework.org/schema/jdbc http://www.springframework.org/schema/jdbc/spring-jdbc-3.0.xsd">
28+
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
29+
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx.xsd
30+
http://www.springframework.org/schema/jdbc http://www.springframework.org/schema/jdbc/spring-jdbc.xsd">
3131

3232
<!-- in-memory database and a datasource -->
3333
<jdbc:embedded-database id="dataSource">

src/test/java/org/mybatis/spring/config/annotation.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2727
xmlns:mybatis="http://mybatis.org/schema/mybatis-spring"
2828
xsi:schemaLocation="
29-
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
29+
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
3030
http://mybatis.org/schema/mybatis-spring http://mybatis.org/schema/mybatis-spring.xsd">
3131

3232
<!-- Scan for mappers and let them be autowired; notice there is no

src/test/java/org/mybatis/spring/config/base-package.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2727
xmlns:mybatis="http://mybatis.org/schema/mybatis-spring"
2828
xsi:schemaLocation="
29-
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
29+
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
3030
http://mybatis.org/schema/mybatis-spring http://mybatis.org/schema/mybatis-spring.xsd">
3131

3232
<!-- Scan for mappers and let them be autowired; notice there is no

src/test/java/org/mybatis/spring/config/factory-ref.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2727
xmlns:mybatis="http://mybatis.org/schema/mybatis-spring"
2828
xsi:schemaLocation="
29-
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
29+
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
3030
http://mybatis.org/schema/mybatis-spring http://mybatis.org/schema/mybatis-spring.xsd">
3131

3232
<!-- Scan for mappers and let them be autowired; notice there is no

src/test/java/org/mybatis/spring/config/marker-and-annotation.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2727
xmlns:mybatis="http://mybatis.org/schema/mybatis-spring"
2828
xsi:schemaLocation="
29-
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
29+
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
3030
http://mybatis.org/schema/mybatis-spring http://mybatis.org/schema/mybatis-spring.xsd">
3131

3232
<!-- Scan for mappers and let them be autowired; notice there is no

src/test/java/org/mybatis/spring/config/marker-interface.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2727
xmlns:mybatis="http://mybatis.org/schema/mybatis-spring"
2828
xsi:schemaLocation="
29-
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
29+
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
3030
http://mybatis.org/schema/mybatis-spring http://mybatis.org/schema/mybatis-spring.xsd">
3131

3232
<!-- Scan for mappers and let them be autowired; notice there is no

src/test/java/org/mybatis/spring/config/name-generator.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2121
xmlns:mybatis="http://mybatis.org/schema/mybatis-spring"
2222
xsi:schemaLocation="
23-
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
23+
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
2424
http://mybatis.org/schema/mybatis-spring http://mybatis.org/schema/mybatis-spring.xsd">
2525

2626
<mybatis:scan base-package="org.mybatis.spring.mapper" name-generator="org.mybatis.spring.config.NamespaceTest$BeanNameGenerator"/>

src/test/java/org/mybatis/spring/config/template-ref.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2727
xmlns:mybatis="http://mybatis.org/schema/mybatis-spring"
2828
xsi:schemaLocation="
29-
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
29+
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
3030
http://mybatis.org/schema/mybatis-spring http://mybatis.org/schema/mybatis-spring.xsd">
3131

3232
<!-- Scan for mappers and let them be autowired; notice there is no

src/test/java/org/mybatis/spring/sample/config/applicationContext-batch.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
<beans xmlns="http://www.springframework.org/schema/beans"
2424
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2525
xsi:schemaLocation="
26-
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">
26+
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">
2727

2828
<import resource="classpath:org/mybatis/spring/sample/config/applicationContext-infrastructure.xml"/>
2929

src/test/java/org/mybatis/spring/sample/config/applicationContext-infrastructure.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@
2525
xmlns:tx="http://www.springframework.org/schema/tx"
2626
xmlns:jdbc="http://www.springframework.org/schema/jdbc"
2727
xsi:schemaLocation="
28-
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
29-
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.0.xsd
30-
http://www.springframework.org/schema/jdbc http://www.springframework.org/schema/jdbc/spring-jdbc-3.0.xsd">
28+
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
29+
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx.xsd
30+
http://www.springframework.org/schema/jdbc http://www.springframework.org/schema/jdbc/spring-jdbc.xsd">
3131

3232
<!-- in-memory database and a datasource -->
3333
<jdbc:embedded-database id="dataSource">

0 commit comments

Comments
 (0)