我已經整合了Ehcache彈簧的註釋罐子部署在JBoss Spring MVC的3.0.3和春季secuirty 3.0.5的Ehcache春天註釋日誌跟蹤
我看不出有任何的Ehcache日誌稱爲http://blog.goyello.com/2010/07/29/quick-start-with-ehcache-annotations-for-spring/但我沒有得到任何錯誤。
我定義爲分貝的servlet 分貝上下文 分貝的安全 web.xml中
我log4j.properties個XML ------------------ -----
log4j.rootLogger = DEBUG,控制檯
log4j.appender.console = org.apache.log4j.ConsoleAppender log4j.appender.console.Threshold = DEBUG
log4j.appen der.console.layout = org.apache.log4j.PatternLayout log4j.appender.console.layout.ConversionPattern =% - 5P〔%C〕:%M%N
log4j.logger.org.springframework = INFO
得到了一些變化 –
現在獲得23:16:40328 INFO [STDOUT] DEBUG [net.sf.ehcache.config.ConfigurationHelper]:C acheDecoratorFactory未配置爲defaultCache。跳過'messagesCach e'。 –
我的ehcache.xml <?xml version =「1.0」encoding =「UTF-8」?> –