• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
  • Paul Clapham
  • paul wheaton
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Piet Souris
  • Mike London

property placeholder configurer ( java.io.FileNotFoundException: class path resource)

Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

I need to dynamically set the path for my properties file, following ways i can do that:
1. Through classpath, but it is not working can you please help me in finding the exact syntax for the same, i have tried "<value>classpath:my.properties</value>", but it is unable to locate the file, below is my classpath showing in manifest file a "Class-Path: . /opt/one/index ", i put my.properties inside the same. but still getting file not found exception.

2. Or Can I set the path of value tag dynamically through run time arguments

    Bookmark Topic Watch Topic
  • New Topic