From 1ac311015e102ac1f259e7b98d76c29c141b7fdb Mon Sep 17 00:00:00 2001 From: whycxzp <perryhsu@163.com> Date: 星期一, 18 十月 2021 15:37:02 +0800 Subject: [PATCH] 提交 --- src/main/java/com/whyc/App.java | 8 ++------ 1 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/main/java/com/whyc/Application.java b/src/main/java/com/whyc/App.java similarity index 64% rename from src/main/java/com/whyc/Application.java rename to src/main/java/com/whyc/App.java index 46d331c..cf6dd4f 100644 --- a/src/main/java/com/whyc/Application.java +++ b/src/main/java/com/whyc/App.java @@ -4,13 +4,9 @@ import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.web.servlet.ServletComponentScan; import org.springframework.cache.annotation.EnableCaching; -import org.springframework.context.annotation.Bean; -import org.springframework.context.annotation.ComponentScan; import org.springframework.web.servlet.config.annotation.EnableWebMvc; -import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry; import org.springframework.web.servlet.config.annotation.WebMvcConfigurer; import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter; -import org.springframework.web.servlet.view.InternalResourceViewResolver; /** * @Description : 鍚姩绫� @@ -20,10 +16,10 @@ @EnableWebMvc @ServletComponentScan(basePackages = {"com.whyc.filter","com.whyc.servlet"}) @EnableCaching -public class Application extends WebMvcConfigurerAdapter implements WebMvcConfigurer { +public class App extends WebMvcConfigurerAdapter implements WebMvcConfigurer { public static void main(String[] args) { - SpringApplication.run(Application.class,args); + SpringApplication.run(App.class,args); } } -- Gitblit v1.9.1