Maven2-spring external properties file undetected under main/resources

I have a maven2 project with the standard directory layout (http://maven.apache.org/guides/introduction/introduction-to-the-standard-directory-layout.html). I have created a spring bean configuration xml under project_dir/main/resources.

... ]]>

The editor incorrectly complains that the wbclient.properties file doesn't exist (it's looking for under project_dir). What's weird is that if I add a property that doesn't exist in the properties file and press Alt + Enter I get an intention action allowing me to add the property to project_dir/main/resources/wbclient.properties.

Can you please fix the spring model inspection to correctly detect the properties file located in project_dir/main/resources

2 comments

Hello Omair-Inam Abdul-Matin,

In general it's recommended to use classpath resources, eg. "classpath:wbclient.properties".

-tt


0

Thanks Taras,

After I add the directory containing my config file to the classpath IntelliJ picked it up

0

Please sign in to leave a comment.