boot项目启动完成后自动停止

. ____ _ __ _ _

/\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \

( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \

\\/  ___)| |_)| | | | | || (_| |  ) ) ) )

  '  |____| .__|_| |_|_| |_\__, | / / / /

=========|_|==============|___/=/_/_/_/

:: Spring Boot ::        (v2.1.8.RELEASE)

2019-09-20 14:28:44.671  INFO 2896 --- [          main] com.example.demo.DemoApplication        : Starting DemoApplication on AI-Rocco with PID 2896 (C:\Users\simple\Desktop\day_diy_annotation\target\classes started by simple in C:\Users\simple\Desktop\day_diy_annotation)

2019-09-20 14:28:44.674  INFO 2896 --- [          main] com.example.demo.DemoApplication        : No active profile set, falling back to default profiles: default

2019-09-20 14:28:45.409  INFO 2896 --- [          main] com.example.demo.DemoApplication        : Started DemoApplication in 1.086 seconds (JVM running for 2.232)

Process finished with exit code 0


解决方法 添加依赖即可

    org.springframework.boot

    spring-boot-starter-web

你可能感兴趣的:(boot项目启动完成后自动停止)