Thursday, 15 April 2010

properties - Spring Property place holder: reading value from external property file fails -


I'm trying to read Logpath external property file.

I have under spring configuration. I am using Spring 2, Maven.

Beans-Config.xml

  & lt; Bean id = "Loglakeshn" class = "org.springframework.beans.factory.config .PropertyPlaceholderConfigurer" & gt; & Lt; Property Name = "Location" & gt; & Lt; Price & gt; File: ///d: /logpath.properties< / Pricing & gt; & Lt; / Property & gt;  

Logpathkproprtijh

  Logpath = D: / log / log Mayprojekt >  

Log4jkproprtij Log4jkrutloger = Info, file Log4j. appender.file = org.apache.log4j.RollingFileAppender log4j.appender.file.file = $ {Logpath} log4j.appender.file.MaxFileSize = 10MB log4j.appender.file.MaxBackupIndex = 10 log4j.appender.file.layout = Org .apache.log4j.PatternLayout log4j.appender.file.layout.ConversionPattern =% d {yyyy-MM-dd HH: mm: ss}% -5p% c {1}:% l -% m% n

I do not know how to log path logpath.property file Lodge 4 Jekprop to $ 4 Placeholder to send to $ {logpath} Am I missing anything in the Beans Configuration XML? Any Help


No comments:

Post a Comment