今天写了一个Spring AOP的列子,配置文件是手写的,报错以下:spring
org.springframework.beans.factory.BeanDefinitionStoreException: Line 3 in XML document from class path resource [applicationContext.xml] is invalid; nested exception is org.xml.sax.SAXParseException: 组件类型“beans”未被声明。
org.xml.sax.SAXParseException: 组件类型“beans”未被声明。app
缘由:xml
没有在xml中加入it
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">io
看来离开IDE,不会写程序了。class