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

后端 未结 9 2349
夕颜
夕颜 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

    I'm learning from udemy. I followed every step that my instructor show me to do. In spring mvc crud section while setting up the devlopment environment i had the same error for:

     and 
    

    then i just replaced

        http://www.springframework.org/schema/mvc/spring-mvc.xsd 
    

    with

        http://www.springframework.org/schema/mvc/spring-mvc-4.2.xsd
    

    and

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

    with

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

    actually i visited these two sites http://www.springframework.org/schema/mvc/ and http://www.springframework.org/schema/tx/ and just added the latest version of spring-mvc and spring-tx i.e, spring-mvc-4.2.xsd and spring-tx-4.2.xsd

    So, i suggest to try this. Hope this helps. Thank you.

提交回复
热议问题