自动化立体仓库 - WMS系统
#
luxiaotao1123
2020-08-07 c79d21e12ec6c0f5400e5c94c4bcbe6950f16888
src/main/java/com/zy/Boot.java
@@ -1,19 +1,24 @@
package com.zy;
import com.zy.common.utils.RandomValidateCodeUtil;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.scheduling.annotation.EnableScheduling;
@EnableScheduling
@SpringBootApplication
public class Boot extends SpringBootServletInitializer {
    public static void main(String[] args) {
        RandomValidateCodeUtil.init();
        SpringApplication.run(Boot.class, args);
    }
    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
        RandomValidateCodeUtil.init();
        return builder.sources(Boot.class);
    }