[root@VM_0_2_centos demo]# sh restart.sh
[root@VM_0_2_centos demo]# SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/home/demo/app/demo.jar!/BOOT-INF/lib/logback-classic-1.2.3.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/home/demo/app/demo.jar!/BOOT-INF/lib/slf4j-log4j12-1.7.25.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [ch.qos.logback.classic.util.ContextSelectorStaticBinder]
jar包启动,就到这就停了
同一个jar包换到另一个主机上就好用,这是主机的啥问题啊
java版本:"1.8.0_77"
Linux version 3.10.0-957.el7.x86_64
应该是jar包冲突导致的,还是不行的话去掉冲突的依赖包
详细可参考:https://blog.csdn.net/wo9aiwuchunmin/article/details/120323746
也没看到错误信息,有没有其他日志。。
上面好像说jar包冲突了,spring-boot-starter-web这个maven依赖里面要排除slf4j,因为你可能单独引入了slf4j