Spring configuration file Element not found 'beans' statement

Spring configuration file Element not found 'beans' statement

Usually caused by the Spring version, you can try to use one of the following.

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN 2.0//EN" "http://www.springframework.org/dtd/spring-beans-2.0.dtd">
<beans>
....
</beans>

or

<?xml version="1.0" encoding="UTF-8"?>
<beans
xmlns="http://www.springframework.org/schema/beans"
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-2.5.xsd">
....
</beans>

Guess you like

Origin www.cnblogs.com/wenqiangit/p/11258234.html
Recommended