• Register
Welcome to Kodlogs, programming questions and answer website.
0 votes

Problem :

When I try to run my Maven Spring project as JUnit i get bellow error
java.lang.illegalstateexception: failed to load applicationcontext
by (6.9k points)  

1 Answer

0 votes

Solution :

I made bellow changes and my problem got resolved.

@ContextConfiguration(locations =  {"classpath*:/spring/test-context.xml"})

And in pom.xml give the bellow plugin:


Further Readings:

by (36.1k points)