The matching wildcard is strict, but no declaration can be found for element 'tx:annotation-driven'

后端 未结 9 2348
夕颜
夕颜 2020-11-29 09:11

I am trying to configure JSF+Spring+hibernate and I\'m tying to run a test but when I use this \"tx:annotation-driven\" on my application-context.xml file, I get this error:

9条回答
  •  情歌与酒
    2020-11-29 09:33

    One extra forward slash (/) in front of tx and the *.xml file troubled me for 8 hours!!

    My mistake:

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

    Correction:

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

    Indeed one character less/more manages to keep programmers busy for hours!

提交回复
热议问题