Java – spring 4 – find the interface org springframework. test. context. Testcontext, but the class is expected
•
Java
I began to get "find the interface org. Springframework. Test. Context. Testcontext, but the class is expected". Spring migrated from the core between 3 and 4 to 4 I use MVN clean test and Java 7 as the Maven compiler version
What about any ideas?
Solution
Fix
This is a problem with the spring test DB cell library Here are some problem descriptions https://github.com/springtestdbunit/spring-test-dbunit/issues/46 – in Maven repos 1.0 The current version visible in 1 is not valid for spring 4 So I need to clone repo and build version 1.1 0-SNAPSHOT.
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码