Reputation: 11
Spring not able located the xml config file. spring.xml file is located in the java folder
Upvotes: 0
Views: 754
Reputation: 1
You can right click the xml file in IDEA, and click the copy path selection, the u can choose the right path in your java file
Upvotes: 0
Reputation: 8624
In maven the non-java classpath resources like xml should be placed in src\main\resources
.
From the screenshot I can see that you don't have resources
folder in src\main
. Create a folder named resources
in src\main
and move the spring.xml
into it and try.
Upvotes: 3