Intellij idea Spring启动-热插拔后Rest控制器失败

Intellij idea Spring启动-热插拔后Rest控制器失败,intellij-idea,spring-boot,Intellij Idea,Spring Boot,我将SpringBoot1.4.1与devtools一起使用,并在Intellij14.1中运行它 除了热插拔之外,所有的工作都很好。我对控制器所做的更改已热交换,我可以看到应用程序正在重新加载。但是,它会导致错误,控制器变得不可用(404)。 重新启动应用程序后,一切正常 知道我做错了什么吗 提前感谢您的帮助 Edward要回答我的问题,可以通过向application.properties添加以下内容来解决问题 ## Amount of time (in milliseconds) to w

我将SpringBoot1.4.1与devtools一起使用,并在Intellij14.1中运行它 除了热插拔之外,所有的工作都很好。我对控制器所做的更改已热交换,我可以看到应用程序正在重新加载。但是,它会导致错误,控制器变得不可用(404)。 重新启动应用程序后,一切正常

知道我做错了什么吗

提前感谢您的帮助
Edward

要回答我的问题,可以通过向application.properties添加以下内容来解决问题

## Amount of time (in milliseconds) to wait between polling for classpath changes.
spring.devtools.restart.poll-interval=3000

# Amount of quiet time (in milliseconds) required without any classpath changes before a restart is triggered.
spring.devtools.restart.quiet-period=2999

为了回答我的问题,可以通过向application.properties添加以下内容来解决问题

## Amount of time (in milliseconds) to wait between polling for classpath changes.
spring.devtools.restart.poll-interval=3000

# Amount of quiet time (in milliseconds) required without any classpath changes before a restart is triggered.
spring.devtools.restart.quiet-period=2999

你能发布你得到的stacktrace吗?谢谢Morfic,你提供的链接很有帮助。我会为其他人更新问题扫描你发布你得到的stacktrace?谢谢Morfic,你提供的链接有帮助。为了其他人的利益,我将更新这个问题