0

I am trying to use this Spring Boot MonogoDB example but I wanted to change the location of the monogoDB server.

http://spring.io/guides/gs/accessing-data-mongodb/

I added the following line to Application.java:

@PropertySource("classpath:/app-config.properties")

Plus added app-config.properties to src/resources but I am getting this error:

Caused by: java.io.FileNotFoundException: class path resource [app-config.properties] cannot be opened because it does not exist

Can someone please help me out...

Tim Zimmermann
  • 6,132
  • 3
  • 30
  • 36
JMS
  • 183
  • 2
  • 9

0 Answers0