实现InitializingBean接口,并且重写afterPropertiesSet()方法,具体实现如下:
public class TestController implements InitializingBean {
/**
* 系统初始化
* */
@Override
public void afterPropertiesSet() throws Exception {
//实现逻辑
}
}
实现InitializingBean接口,并且重写afterPropertiesSet()方法,具体实现如下:
public class TestController implements InitializingBean {
/**
* 系统初始化
* */
@Override
public void afterPropertiesSet() throws Exception {
//实现逻辑
}
}