spring测试dao层工作时报错:Caused by: org.xml.sax.SAXParseException; lineNumber: 63; columnNumber: 30; cvc-complex-type.2.4.c: 通配符的匹配很全面, 但无法找到元素 ‘tx:advice’ 的声明。
解决办法
在applicationContext.xml上的xsi:schemaLocation 加上:
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx.xsd