springboot启动后自动关闭的问题

springboot新建完后启动成功但是会马上给自动关闭

报错信息:

2023-01-09 10:00:12.649  INFO 14252 --- [           main] c.t.e.e.ExhookSvrJavaSpring1Application  : Starting ExhookSvrJavaSpring1Application using Java 1.8.0_161 on DESKTOP-AL4FFB7 with PID 14252 (D:\work\wulian\iotcloud\acquisition\exhook-svr-java-spring1\target\classes started by thpower in D:\work\wulian\iotcloud\acquisition)
2023-01-09 10:00:12.652  INFO 14252 --- [           main] c.t.e.e.ExhookSvrJavaSpring1Application  : No active profile set, falling back to 1 default profile: "default"
2023-01-09 10:00:13.073  INFO 14252 --- [           main] c.t.e.e.ExhookSvrJavaSpring1Application  : Started ExhookSvrJavaSpring1Application in 0.75 seconds (JVM running for 1.497)
Disconnected from the target VM, address: '127.0.0.1:63839', transport: 'socket'

Process finished with exit code 0

解决方案:(亲测可用)

添加依赖

<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-web</artifactId>
</dependency>

参考:

关于SpringBoot启动后自动关闭的问题-蒲公英云

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值