Home > Back-end >  The Spring unit test ContextConfiguration annotation cannot use @ don't come out no reaction
The Spring unit test ContextConfiguration annotation cannot use @ don't come out no reaction

Time:09-16

Solve the Spring unit test ContextConfiguration annotation cannot use
When we are in the SSM framework using Springtest unit testing of the following would happen, cannot normal use
And you can see your bag and other color is not the same as normal package, you may and I met the same problem


My right, it is pom. The XML file configuration & lt; Scope> Test This code is deleted



So that we can normal use, the color of the jars are as good as other



Many other also can appear this situation, this situation also has appeared my junit
Finally, the hope can help you to solve this problem
  • Related