以Debug模式启动Spring boot

19.2 Running as a packaged application

It is also possible to run a packaged application with remote debugging support enabled. This allows you to attach a debugger to your packaged application:

$ java -Xdebug -Xrunjdwp:server=y,transport=dt_socket,address=8000,suspend=n \
       -jar target/myproject-0.0.1-SNAPSHOT.jar

猜你喜欢

转载自nethub2.iteye.com/blog/2327698