Springboot启动前执行方法
1.实现ServletContextAware接口并重写其setServletContext方法@Component
public class TestStarted implements ServletContextAware {
/**
* 在填充普通bean属性之后但在初始化之前调用
* 类似于initializingbean的afterpropertiesset或自定义init方法的回调
*
*/
@Override
...