Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/mysql/58.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
IntelliJ调试vs java-jar Spring启动应用程序_Java_Spring_Debugging_Spring Boot_Intellij Idea - Fatal编程技术网

IntelliJ调试vs java-jar Spring启动应用程序

IntelliJ调试vs java-jar Spring启动应用程序,java,spring,debugging,spring-boot,intellij-idea,Java,Spring,Debugging,Spring Boot,Intellij Idea,当我通过java-jar target xxxx.jar从控制台运行Spring Boot 1.3.5应用程序时,它运行得非常好。相反,当我从IntelliJ运行它到应用程序类时,右键单击类名并作为“Application.main()”进行调试,它会快速启动和停止。我只能看到下面的消息 Connected to the target VM, address: '127.0.0.1:35472', transport: 'socket' SLF4J: The requested version

当我通过java-jar target xxxx.jar从控制台运行Spring Boot 1.3.5应用程序时,它运行得非常好。相反,当我从IntelliJ运行它到应用程序类时,右键单击类名并作为“Application.main()”进行调试,它会快速启动和停止。我只能看到下面的消息

Connected to the target VM, address: '127.0.0.1:35472', transport: 'socket'
SLF4J: The requested version 1.7.16 by your slf4j binding is not compatible with [1.6]
SLF4J: See http://www.slf4j.org/codes.html#version_mismatch for further details.

  .   ____          _            __ _ _
 /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
 \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
  '  |____| .__|_| |_|_| |_\__, | / / / /
 =========|_|==============|___/=/_/_/_/
 :: Spring Boot ::        (v1.3.5.RELEASE)

nov 30, 2017 3:54:48 PM org.apache.catalina.core.StandardService startInternal
INFORMACIÓN: Starting service Tomcat
nov 30, 2017 3:54:48 PM org.apache.catalina.core.StandardEngine startInternal
INFORMACIÓN: Starting Servlet Engine: Apache Tomcat/8.0.33
nov 30, 2017 3:54:48 PM org.apache.catalina.core.ApplicationContext log
INFORMACIÓN: Initializing Spring embedded WebApplicationContext
nov 30, 2017 3:54:49 PM org.apache.catalina.core.StandardService stopInternal
INFORMACIÓN: Stopping service Tomcat
Disconnected from the target VM, address: '127.0.0.1:35472', transport: 'socket'

Process finished with exit code 1

为什么它不能像往常一样工作(我第一次看到这个问题)?。我希望能够从我的IntelliJ在调试模式下运行我的应用程序。

如果你“以”而不是“以”调试,它是否会出现相同的错误?你是否尝试过清理+打包然后调试?@Nathan,是的,完全一样same@ajc不,事实上它的行为是不同的。我知道安装和软件包之间的区别,但我不明白为什么这意味着不同。你能解释一下为什么吗?谢谢(仍然有与文件相关的不同错误,没有Found@ldepablo您可能正在运行一个旧的配置,或者使用一个旧的包…FileNotFound是另一个问题,但至少它很容易解决^^^我会让ajc知道您的配置可能有什么问题