java - how do i get values from a properties file in quartz scheduler? -
I am using Spring 2.0.6 and quartz 1.5.2 in the Java based webpage. Want to know that my application contact-quartz How to configure XML, like I can read the value from the properties file That is, I can not use my file
& lt; Property name = "imageFolder" value = "$ {config.imageFolder}" /> would like to read & lt; Property name = "raw imagefolder" value = "$ {config.rawImageFolder}" /> & Lt; Property name = "imageOutputFolder" value = "$ {config.imageOutputFolder}" />
& lt; Property name = "imageFolder" value = "/ path / to / dir1" /> Instead of & lt; Asset name = "raw imagefolder" value = "/ path / to / dia2" /> & Lt; Property Name = "imageOutputFolder" value = "/ path / to / Dior 3" />
Use:
& lt; Bean class = "org.springframework.beans.factory.config.PropertyPlaceholderConfigurer" & gt; & Lt; Property Name = "Location" & gt; & Lt ;! - Change it to your property location - & gt; & Lt; Price & gt; Classpath: quartz.properties & lt; / Pricing & gt; & Lt; / Property & gt; & Lt; / Bean & gt;
Comments
Post a Comment