
1 wawaguo 2023-09-05 14:12:48 +08:00 哪里有报错 没看到啊 |
3 falsemask 2023-09-05 14:21:44 +08:00 看上去是 quartz 的问题 |
4 Laysan 2023-09-05 14:24:51 +08:00 |
5 WashFreshFresh 2023-09-05 14:34:03 +08:00 op 的帖子是我逛 V2EX 这么久以来唯一能看到的图...其它图在我这看都是挂的。 |
6 EarthChild 2023-09-05 14:36:01 +08:00 阿里的东西能不用就不用,换 hikari 连接池吧 https://github.com/brettwooldridge/HikariCP |
7 nothingistrue 2023-09-05 14:38:13 +08:00 啥错也没有,这就是跑起来,执行完,自己退出了。把你的 BootStrap 类贴出来看看,估计用错方式了。 这日志配色看得是真头疼 |
8 Duolingo 2023-09-05 14:38:26 +08:00 没看到报错,倒是像是 quarts 运行完就直接把整个进程停了哈哈哈( doge |
9 WashFreshFresh 2023-09-05 14:39:08 +08:00 你这是新项目?是不是忘记加 web 的依赖了?没加是会正常关闭的。 |
10 zx9481 OP @nothingistrue https://t.wss.ink/f/c3z1i3i923n 复制链接到浏览器打开 ,这是完整的日志,请帮忙看一下 |
11 chendy 2023-09-05 14:52:44 +08:00 目测有的操作有问题,或者配置有问题 任务跑完直接给 System.exit 了 |
12 NoString 2023-09-05 14:55:08 +08:00 没看到有报错哇 |
14 vacuitym 2023-09-05 15:00:43 +08:00 可以检查下 redis 是不是能连上 |
16 kd9yYw2RyhQwAwzn 2023-09-05 15:48:05 +08:00 在 shutdown 处打个断点看下呢 |
17 lazyfighter 2023-09-05 15:54:40 +08:00 进程已结束,退出代码为 0 , 看看因没有引用 spring-web-starter , 感觉不是 web 程序,所以进程直接结束了 |
18 ganning 2023-09-05 16:07:17 +08:00 看日志显示服务已经启动成功了,看看定时任务执行吧,逐个注释排查下 “2023-09-05 14:42:18.991 INFO 9400 --- [ main] org.springcrazy.Application : Started Application in 16.229 seconds (JVM running for 17.097)” |
19 xeathen 2023-09-05 16:22:39 +08:00 @WashFreshFresh #5 你是不是用新加坡节点 |
20 wentz 2023-09-05 16:24:26 +08:00 在 Application 的 main 方法,加个 try ,catch ,打印下错误信息看看 |
21 WashFreshFresh 2023-09-05 17:00:44 +08:00 @xeathen #19 确实是 |
22 xeathen 2023-09-05 17:07:50 +08:00 @WashFreshFresh #21 换香港之类的节点你就能看到 imgur 的图了 |
23 hiwind 2023-09-05 17:08:47 +08:00 via iPhone 截图是啥工具处理的? |
24 hidemyself 2023-09-05 17:12:44 +08:00 代码发出来看看 |
25 c3de3f21 2023-09-05 17:34:25 +08:00 有没有一种可能,你在 Application 里写个 while(true) 他就不会死掉了 |
26 tianmalj0613 2023-09-05 17:38:35 +08:00 你先把日志调好吧,这个 error 和 warn 的日志都没有 咋个 debug? |
27 nothingistrue 2023-09-05 19:28:26 +08:00 @zx9481 #10 整个日志,都没有 error 级别的,看着就是 Redis 连上那一刻,服务自行结束了。这个不是无法启动,是启动后自行结束。日志上能看出,这是有 Web 服务器 Undertow 的,基本可以排除启动类不是 Web 启动类这个原因。那么剩下的,有很大的概率,各组件的集成问题。初始配置的问题,还是要找这个项目的老程序员给找找错误原因,外人很难找出来原因。 |
28 daye 2023-09-05 19:53:39 +08:00 如果确定你的项目有引用 spring-boot-starter-web 依赖的话,那么很大概率是 9080 端口被占用,端口冲突 |
29 daye 2023-09-05 19:54:16 +08:00 已与地址为 ''127.0.0.1:9080',传输: '套接字'' 的目标虚拟机断开连接 |
30 chocotan 2023-09-05 21:24:05 +08:00 楼主这是没加 web 依赖吧。。 |
31 NeroKamin 2023-09-05 21:36:30 +08:00 看起来像是 quartz 的问题呢 |
32 Daniel17 2023-09-05 21:48:02 +08:00 把日志级别搞一下。。 |
33 KevinBlandy 2023-09-06 09:55:17 +08:00 |
34 yinxs2003 2023-09-09 18:20:47 +08:00 看看 pom 里有没有 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter</artifactId> <exclusions> <exclusion> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-logging</artifactId> </exclusion> </exclusions> </dependency> |