提交 1e735b83 authored 作者: inroi's avatar inroi

提交问题

上级 f5f1fd02
...@@ -2,14 +2,20 @@ package com.shr; ...@@ -2,14 +2,20 @@ package com.shr;
import org.springframework.boot.SpringApplication; import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.ServletComponentScan; import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
/** /**
* @author Inori * @author Inori
*/ */
@ServletComponentScan("com.shr.filter") @ServletComponentScan("com.shr.filter")
@SpringBootApplication @SpringBootApplication
public class ShrApplication { public class ShrApplication extends SpringBootServletInitializer {
@Override
protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
return application.sources(ShrApplication.class);
}
public static void main(String[] args) { public static void main(String[] args) {
SpringApplication.run(ShrApplication.class, args); SpringApplication.run(ShrApplication.class, args);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论