spring-servlet.xml配置中报错:
The prefix "tx" for element "tx:advice" is not bound

解决办法:
在配置文件中加:xmlns:aop="http://www.springframework.org/schema/aop"
xmlns:tx="http://www.springframework.org/schema/tx"

http://www.springframework.org/schema/tx
http://www.springframework.org/schema/tx/spring-tx.xsd
http://www.springframework.org/schema/aop
http://www.springframework.org/schema/aop/spring-aop.xsd

Attribute name "http:" associated with an element type "beans" must be followed by the ' = ' character.
原因:spring-aop.xsd后多了一个引号

posted on 2017-08-22 15:17  cyy_13  阅读(450)  评论(0编辑  收藏  举报