Spring中使用内置的tomcat容器启动后自动退出问题解决方法

在Spring中使用内置的tomcat 启动后自动退出 退出代码为0 且不报任务错误的解决方法.

日志如下:

bash 复制代码
Connected to the target VM, address: '127.0.0.1:51129', transport: 'socket'
三月 15, 2024 11:55:00 下午 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler ["http-nio-8089"]
三月 15, 2024 11:55:00 下午 org.apache.catalina.core.StandardService startInternal
信息: Starting service [Tomcat]
三月 15, 2024 11:55:00 下午 org.apache.catalina.core.StandardEngine startInternal
信息: Starting Servlet engine: [Apache Tomcat/8.5.93]
三月 15, 2024 11:55:00 下午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["http-nio-8089"]
Tomcat Started
Disconnected from the target VM, address: '127.0.0.1:51129', transport: 'socket'

Process finished with exit code 0

exit code 0 遇到这种情况一般是因为电脑之前启动过tomcat且没有正确关闭导致, 一般情况下重启电脑即可解决.

相关推荐
皮皮林55110 小时前
SpringBoot 全局/局部双模式 Gzip 压缩实战:14MB GeoJSON 秒变 3MB
java·spring boot
weixin_4569042710 小时前
Spring Boot 用户管理系统
java·spring boot·后端
趁你还年轻_10 小时前
异步编程CompletionService
java
DKPT10 小时前
Java内存区域与内存溢出
java·开发语言·jvm·笔记·学习
sibylyue10 小时前
Guava中常用的工具类
java·guava
奔跑吧邓邓子10 小时前
【Java实战㉞】从0到1:Spring Boot Web开发与接口设计实战
java·spring boot·实战·web开发·接口设计
专注API从业者10 小时前
Python/Java 代码示例:手把手教程调用 1688 API 获取商品详情实时数据
java·linux·数据库·python
奔跑吧邓邓子11 小时前
【Java实战㉝】Spring Boot实战:从入门到自动配置的进阶之路
java·spring boot·实战·自动配置
ONLYOFFICE11 小时前
【技术教程】如何将ONLYOFFICE文档集成到使用Spring Boot框架编写的Java Web应用程序中
java·spring boot·编辑器
fuyongliang12311 小时前
nginx反向代理,负载均衡,tomcat的数据流向图篇解析
nginx·tomcat·负载均衡