where to put .propertie files in eclipse

   WEB-PROJECT

  1. Basically, JVM  reads  the properties files from the classes folder in the Web project once we deployed into the server
  2. If we create the Web project in eclipse IDE ,we have to put the properties files in the src folder like below

putpopfilesinsrcfolder

 

so,when we deploy the above project in server, properties files will be placed in classes folder automatically

 

Java Project

If we create Normal Java Project properties files should be in project root folder.

 

Maven Project

If we create Maven Project properties files should be in resources folder.

 

 

 

 

Advertisements

One thought on “where to put .propertie files in eclipse

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s