Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Injecting values for static constants in Spring

In one of my classes there is a public static String member and I need set this value in the applicationContext.xml! That is, is it possible for us to inject a value for this static property?

like image 735
Shyam Avatar asked May 04 '10 06:05

Shyam


1 Answers

yes there is an example on this link http://planproof-fool.blogspot.com/2010/03/spring-setting-static-fields.html

like image 118
JoseK Avatar answered Oct 04 '22 01:10

JoseK