Tag archives for properties

Java: Use of JVM variable argument (Spring, properties file, outside of classpath scope)
Hello, I know, I have not been writing on my blog since a long time, but, I have been very busy with a challenge project. So, today, I start with a mini-post concerning the use of JVM variable/argument. We will study a concret example to specifiy the place of a configuration file outside of classpath scope. Needs We need to precise the ...more»
Spring: access to properties or parameters in all places of the application
Hi, I propose you a simple solution based on Spring context, PropertyPlaceholderConfigurer to load and access to properties or parameters in all places of an application. First, we have a properties' file (for example) named "" in the server's classpath (for example in the "etc" folder of TOMCAT server) containing: Secondly, create a class containing a attribute for each parameter of above ...more»
Copyright ® 2012 Hüseyin Özveren. No reproduction, even partial, can be used from this site and all its contents including text, documents, images, etc.. without the express permission of the author.