今天在配置ssm的时候,配置切面时,xml报错,The prefix "tx" for element "tx:annotation-driven" is not bound. 后来找了一下,发现没有引入schema,在头部加入就好, 具体附上图
错误图片
解决图片
需要引入的:
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-4.1.xsd
http://www.springframework.org/schema/aop