How Do I Configure Spring Properties With Jetty?

I have IDEA building an exploded war file and deploying it to jetty.
I don't want to include the config file in the war so I am currently configuring Spring like this:

public class MyConfig {

However, this requires me to copy my to the jetty folder (jetty/etc/testApp) each time I make a change, which doesn't seem right.

I tried adding the directories and the properties file to the artifact in IDEA (in the root and the web-inf/classes) but Spring can't seem to find it.

What is the best way to do this?

Please sign in to leave a comment.