我搜索了stackoverflow,在这里喜欢类似的帖子:
Attribute "default-dependency-check" is not allowed to appear in element 'beans'
但我在那里得不到答案。
我的applicationContext.xml内容如下:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
<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.xsd">
</beans>
问题如下:
属性“default-dependency-check”不允许出现在元素'beans'
中
我删除了这一行就可以了:
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
修改
我搜索了该项目,没有找到default-dependency-check