Configuration problems: Unable to locate Spring NamespaceHandler for XML schema namespace [http://java.sun.com/xml/ns/javaee]

后端 未结 1 1780
北海茫月
北海茫月 2021-01-20 01:20

I\'m trying to combine JUnit and Spring in a web project. Thanks to this question, I have succeeded in loading the spring config file into TestClass:

@RunWit         


        
相关标签:
1条回答
  • 2021-01-20 01:47

    I made a stupid mistake, which is using "web.xml" as spring configuration context file. SpringJUnit4ClassRunner try to parse it as the spring context file so it failed.

    After including the right context file, the application works now.

    0 讨论(0)
提交回复
热议问题