Allow spring-boot-devtools to work with JRebel

Update devtools to detect JRebel and disable application restarts. Other
features (such as LiveReload) can still be used.

Fixes gh-3095
This commit is contained in:
Phillip Webb
2015-09-30 15:39:12 -07:00
parent acde5407e8
commit db0212b834
5 changed files with 65 additions and 6 deletions

View File

@@ -872,12 +872,16 @@ a very fast feedback loop for code changes. By default, any entry on the classpa
points to a folder will be monitored for changes.
NOTE: You can also start your application via the supported build plugins (i.e. Maven and
Gradle) as long as forking is enabled since DevTools need an isolated application classloader
to operate properly.
Gradle) as long as forking is enabled since DevTools need an isolated application
classloader to operate properly.
TIP: Automatic restart works very well when used with LiveReload.
<<using-boot-devtools-livereload,See below>> for details.
NOTE: If you use JRebel automatic restarts will be disabled in favor of dynamic class
reloading. Other devtools features (such as LiveReload and property overrides) can still
be used.
.Restart vs Reload
****
The restart technology provided by Spring Boot works by using two classloaders.