我在WEB-INF/classes
目錄中創建applicationContext.xml。 並添加在XML中,卻得到了一個錯誤:URI未在applicationContext.xml中註冊(設置|語言和框架|模式和DTD)
URI is not registered (Settings | Languages & Frameworks | Schemas and DTDs)
你可以看到下面的快照:
的XML如下:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd"> // -> there comes the issue
<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>