Skip to main content
added 962 characters in body
Source Link
Caffeine Coder
  • 1.2k
  • 17
  • 23

Live reload is a different feature than the problem you have asked the solution for. In your case as you want to reload your classes after changing them, you need to follow the following 3 steps-

  1. Make change in compiler settings enter image description here
  2. Make changes in the registry enter image description here
  3. Make changes in the run/debug configuration enter image description here

That's it! After modifying your classes, you can simply press ctrl+F10 to reload the modified classes. You are good to go then!

Addtionally, if you want to configure single point of reload upon modification: https://www.logicbig.com/tutorials/spring-framework/spring-boot/trigger-file.html  


For Live Reload: When a Spring Boot application is running in Intellij IDEA, the templates are served from out/production/resources/templates directory. You can change this behavior and serve the templates directly from src/main/resources/templates directory in development mode. Create a file application-dev.yml in src/main/resources directory and paste the following code snippet in it:

spring: # Templates reloading during development thymeleaf: prefix: file:src/main/resources/templates/ cache: false # Static resources reloading during development resources: static-locations: file:src/main/resources/static/ cache-period: 0 

To load the above properties, you need to activate and set the default Spring Boot profile to dev. Add the following property to your application.yml file:

spring: profiles: active: dev 

Start your application. Now whenever you make any changes in your html files, all you need is to refresh the browser to see the changes!

Live reload is a different feature than the problem you have asked the solution for. In your case as you want to reload your classes after changing them, you need to follow the following 3 steps-

  1. Make change in compiler settings enter image description here
  2. Make changes in the registry enter image description here
  3. Make changes in the run/debug configuration enter image description here

That's it! After modifying your classes, you can simply press ctrl+F10 to reload the modified classes. You are good to go then!

Addtionally, if you want to configure single point of reload upon modification: https://www.logicbig.com/tutorials/spring-framework/spring-boot/trigger-file.html  .

Live reload is a different feature than the problem you have asked the solution for. In your case as you want to reload your classes after changing them, you need to follow the following 3 steps-

  1. Make change in compiler settings enter image description here
  2. Make changes in the registry enter image description here
  3. Make changes in the run/debug configuration enter image description here

That's it! After modifying your classes, you can simply press ctrl+F10 to reload the modified classes. You are good to go then!

Addtionally, if you want to configure single point of reload upon modification: https://www.logicbig.com/tutorials/spring-framework/spring-boot/trigger-file.html


For Live Reload: When a Spring Boot application is running in Intellij IDEA, the templates are served from out/production/resources/templates directory. You can change this behavior and serve the templates directly from src/main/resources/templates directory in development mode. Create a file application-dev.yml in src/main/resources directory and paste the following code snippet in it:

spring: # Templates reloading during development thymeleaf: prefix: file:src/main/resources/templates/ cache: false # Static resources reloading during development resources: static-locations: file:src/main/resources/static/ cache-period: 0 

To load the above properties, you need to activate and set the default Spring Boot profile to dev. Add the following property to your application.yml file:

spring: profiles: active: dev 

Start your application. Now whenever you make any changes in your html files, all you need is to refresh the browser to see the changes!

Source Link
Caffeine Coder
  • 1.2k
  • 17
  • 23

Live reload is a different feature than the problem you have asked the solution for. In your case as you want to reload your classes after changing them, you need to follow the following 3 steps-

  1. Make change in compiler settings enter image description here
  2. Make changes in the registry enter image description here
  3. Make changes in the run/debug configuration enter image description here

That's it! After modifying your classes, you can simply press ctrl+F10 to reload the modified classes. You are good to go then!

Addtionally, if you want to configure single point of reload upon modification: https://www.logicbig.com/tutorials/spring-framework/spring-boot/trigger-file.html .