Java web项目启动后运行一次的方法

方法1、定义一个类,声明一个方法,方法中调用须要启动后运行的代码。java eg:spring public class InitProcess {   @Autowired   private ValidateCodeMapper validateCodeMapper;   public void init()   {     System.out.println("运行开始");     va
相关文章
相关标签/搜索