|  |  |  | 
|---|
|  |  |  | 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 { | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Override | 
|---|
|  |  |  | protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) { | 
|---|
|  |  |  | RandomValidateCodeUtil.init(); | 
|---|
|  |  |  | return builder.sources(Boot.class); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|