修改启动类
This commit is contained in:
parent
bac23ce58f
commit
729c589e24
2
.gitignore
vendored
2
.gitignore
vendored
@ -67,7 +67,7 @@ hs_err_pid*
|
|||||||
# .idea/modules.xml
|
# .idea/modules.xml
|
||||||
# .idea/*.iml
|
# .idea/*.iml
|
||||||
# .idea/modules
|
# .idea/modules
|
||||||
# *.iml
|
*.iml
|
||||||
# *.ipr
|
# *.ipr
|
||||||
|
|
||||||
# CMake
|
# CMake
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
package cn.keking;
|
package cn.keking;
|
||||||
|
|
||||||
import cn.keking.config.AppBanner;
|
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||||
@ -24,7 +23,6 @@ public class ServerMain {
|
|||||||
stopWatch.start();
|
stopWatch.start();
|
||||||
ConfigurableApplicationContext context = new SpringApplicationBuilder(ServerMain.class)
|
ConfigurableApplicationContext context = new SpringApplicationBuilder(ServerMain.class)
|
||||||
.logStartupInfo(false)
|
.logStartupInfo(false)
|
||||||
.banner(new AppBanner())
|
|
||||||
.run(args);
|
.run(args);
|
||||||
stopWatch.stop();
|
stopWatch.stop();
|
||||||
Integer port = context.getBean(ServerProperties.class).getPort();
|
Integer port = context.getBean(ServerProperties.class).getPort();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user