spring-beans.dtd cannot be opened because it does not exist

18:58:12.091 [main] DEBUG o.s.b.factory.xml.BeansDtdResolver - Could not resolve beans DTD [http://www.springframework.org/dtd/spring-beans.dtd]: not found in class path

java.io.FileNotFoundException: class path resource [org/springframework/beans/factory/xml/spring-beans.dtd] cannot be opened because it does not exist


Modify applicationContext.xml:


    "spring-beans.dtd">


Under resources directory, create directory org\springframework\beans\factory\xml.

then put spring-beans.dtd to it.

resources\org\springframework\beans\factory\xml\spring-beans.dtd


Reference: http://blog.csdn.net/zwhfyy/article/details/845774

你可能感兴趣的:(Spring)