How to debug spring-boot application with IntelliJ IDEA community Edition?

后端 未结 9 2143
野性不改
野性不改 2021-01-29 23:43

I\'m having difficulties in debugging a Java spring-boot application on IntelliJ IDEA community Edition. The main problem is, that the IDE won\'t stop on a breakpoint, even the

9条回答
  •  有刺的猬
    2021-01-30 00:14

    The only approach that worked for me, is running or debugging application directly from Intellij Idea. Just open class which contains

     public static void main(String[] args) {
            SpringApplication.run(MyApp.class, args);
        }
    

    And click right mouse button->Debug my application

提交回复
热议问题