
We can run one LiveReload server at a time. We can also disable auto-reload in browser by excluding the above paths.
The LiveReload works on the following path: It provides browser extensions for Chrome, Firefox, and Safari. Note: We can disable the LiveReload by setting the property to false. It allows the application to automictically trigger a browser refresh whenever we make changes in the resources. LiveReload: The Spring Boot DevTools module includes an embedded server called LiveReload. DevTools depends on the application context's shutdown hook to close it during the restart.Auto-restart works well with LiveReload.By default, Maven fork the application process. DevTools required a separate application classloader to work properly.
#LIVERELOAD SAFARI UPDATE#
There is only a way to trigger a restart is to update the classpath. The DevTools always monitors the classpath resources. We can disable the auto-restart of a server by using the property to false. Therefore, the base ClassLoader is always available and populated. When the application restarts, the restart ClassLoader is thrown away, and a new one is populated. The classes that we are actively developing are loaded in the restart ClassLoader. The classes that do not change (third-Jars) are loaded in the base ClassLoader. Spring Boot uses two types of ClassLoaders: It is mostly used in microservice-based applications. After the server-side changes, it deployed dynamically, server restarts happen, and load the modified code. Note: If we do not want to apply property defaults on an application, we can set configprop:-properties to false in the application.properties file.Īutomatic Restart: Auto-restart means reloading of Java classes and configure it at the server-side. During the development caching for Thymeleaf, Freemarker, Groovy Templates are automatically disabled. When we use the spring-boot-devtools module, we are not required to set properties. But setting up these properties during the development always creates some problems. It disables the caching and allows us to update pages without the need of restarting the application. Property Defaults: Spring Boot provides templating technology Thymeleaf that contains the property.
Spring Boot DevTools provides the following features: