ARCHIT SINHA
ARCHIT SINHA

Reputation: 11

Spring cannot find xml file

Spring not able located the xml config file. spring.xml file is located in the java folder enter image description here

Upvotes: 0

Views: 754

Answers (2)

ychhh_
ychhh_

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

seenukarthi
seenukarthi

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

Related Questions