Too many breakpoints in Debug mode will cause Spring's initWebApplicationContext to take too long to load

13:49:14.656 INFO   [main] org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:200) >14> Root WebApplicationContext: initialization completed in 36656 ms  


The above is the loading time of Spring's initWebApplicationContext in Debug mode when there is no breakpoint. If there are too many breakpoints, the loading time will be too long. I encountered this problem today, and it took 658858s to load the initWebApplicationContext. I thought there was a problem with the code. After removing all breakpoints, it is the speed above.

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326724109&siteId=291194637