package com.lilosoft; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.boot.Banner; 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.cloud.client.discovery.EnableDiscoveryClient;*/ import org.springframework.scheduling.annotation.EnableScheduling; @SpringBootApplication @EnableScheduling public class LiLoAiCaseExampleApplication extends SpringBootServletInitializer { private final static Logger logger = LoggerFactory.getLogger(LiLoAiCaseExampleApplication.class); public static void main(String[] args) { SpringApplication app = new SpringApplication(LiLoAiCaseExampleApplication.class); app.setBannerMode(Banner.Mode.CONSOLE); app.run(args); logger.info("ヾ(@°^°@)ヾ liloAiCase启动成功 ヾ(@°^°@)ヾ\n"); logger.info("SpringbootApplication "+" is success!"); } @Override protected SpringApplicationBuilder configure(SpringApplicationBuilder application) { return application.sources(LiLoAiCaseExampleApplication.class); } }