• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
  • Piet Souris
  • Frits Walraven
  • Carey Brown

importing file using @PropertySource- spring

Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

currently in my project i am importing an application.properties file by using @PropertySource

as i build the war the application.properties builds into the war file. (myWar.war contains the application.properties file inside)

i would like to have the application properties outside the war (next to the war in the same directory level)
can i define in @PropertySource path which is 3 folders up from the current location ? (something like @PropertySource("file:../../../application.properties") ?

Enjoy the full beauty of the english language. Embedded in this tiny ad:
Thread Boost feature
    Bookmark Topic Watch Topic
  • New Topic