spring
文章平均质量分 52
April_CH
I want to be the reason for the smile on your face and that one boy in your life who can never be replaced. - April
展开
-
Action中成员bean的自动注入
public class TestAction extends ActionSupport{ private TestService testService; public void setTestService(TestService testService) { this.testService= testService; } } 两种方式:原创 2014-01-10 16:05:35 · 1390 阅读 · 0 评论 -
通过ApplicationContextAware获取bean
加载Spring配置文件时,如果Spring配置文件中所定义的Bean类实现了ApplicationContextAware 接口,那么在加载Spring配置文件时,会自动调用ApplicationContextAware 接口中的 public class SpringFactory implements ApplicationContextAware { priva原创 2014-01-15 16:36:45 · 815 阅读 · 0 评论 -
SLF4J与LOG4J
一、介绍: 简单日记门面(simple logging Facade for java)SLF4J是为各种loging APIs提供一个简单统一的接口,从而使得最终用户能够在部署的时候配置自己希望的loging APIs实现。 Logging API实现既可以选择直接实现SLF4J接的loging APIs如: NLOG4J、SimpleLogger。也可以通过SLF4J提供的API实现来原创 2013-09-09 22:15:50 · 1119 阅读 · 0 评论