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

后端 未结 9 2341
夕颜
夕颜 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:30

    FWIW I had this same issue. Turned out my xsi:schemaLocation entries were incorrect, so I went to the official docs and pasted theirs into mine:

    http://docs.spring.io/spring/docs/current/spring-framework-reference/html/transaction.html section 16.5.6

    I had to add a couple more but that was ok. Next up is to find out why this fixed the problem...

提交回复
热议问题