[JAVA] How to apply thymeleaf changes to the browser immediately with #Spring Boot + maven

How to apply thymeleaf changes to the browser immediately with Spring Boot + maven

When developing in spring + maven environment, Java changes are automatically reflected by devtools, but static files such as HTML are not automatically reflected. If you have not changed the file structure etc., you can add the following settings to application.yml (or application.properties) so that the changes will be reflected in the browser immediately.

spring:
  thymeleaf:
    prefix: classpath:/templates/

Or it will be reflected in this way of writing.

spring:
  thymeleaf:
    prefix: file:src/main/resources/templates/

Recommended Posts

How to apply thymeleaf changes to the browser immediately with #Spring Boot + maven
How to boot by environment with Spring Boot of Maven
How to use MyBatis2 (iBatis) with Spring Boot 1.4 (Spring 4)
How to use built-in h2db with spring boot
[Spring Boot] How to refer to the property file
Until INSERT and SELECT to Postgres with Spring boot and thymeleaf
How to set Spring Boot + PostgreSQL
How to use the same Mapper class in multiple data sources with Spring Boot + MyBatis
How to use ModelMapper (Spring boot)
How to create your own Controller corresponding to / error with Spring Boot
Hello World with Eclipse + Spring Boot + Maven
Changes when migrating from Spring Boot 1.5 to Spring Boot 2.0
How to set JAVA_HOME with Maven appassembler-maven-plugin
Changes when migrating from Spring Boot 2.0 to Spring Boot 2.2
Implement CRUD with Spring Boot + Thymeleaf + MySQL
Implement paging function with Spring Boot + Thymeleaf
How to split Spring Boot message file
Run WEB application with Spring Boot + Thymeleaf
[Spring Boot] I investigated how to implement post-processing of the received request.
How to read Body of Request multiple times with Spring Boot + Spring Security
How to check before sending a message to the server with Spring Integration
How to access Socket directly with the TCP function of Spring Integration
I used Docker to solidify the template to be developed with spring boot.
[Rails] How to apply the CSS used in the main app with Administrate
Configure Spring Boot application with maven multi module
How to make Spring Boot Docker Image smaller
How to use Spring Boot session attributes (@SessionAttributes)
Organize the differences in behavior of @NotBlank, @NotEmpty, @NotNull with Spring Boot + Thymeleaf
The story of raising Spring Boot 1.5 series to 2.1 series
[Swift] How to link the app with Firebase
Try to implement login function with Spring Boot
How to add a classpath in Spring Boot
Create CRUD apps with Spring Boot 2 + Thymeleaf + MyBatis
How to perform UT with Excel as test data with Spring Boot + JUnit5 + DBUnit
Create your own Utility with Thymeleaf with Spring Boot
How to bind to property file in Spring Boot
Try to automate migration with Spring Boot Flyway
[Java] Article to add validation with Spring Boot 2.3.1.
I wanted to gradle spring boot with multi-project
How to set environment variables in the properties file of Spring boot application
Apply Twitter Bootstrap 4 to Spring Boot 2 using Webjars
Part2 Part II. How to proceed with Getting Started Spring Boot Reference Guide Note ①
[Introduction to Spring Boot] Authentication function with Spring Security
Spring Boot --How to set session timeout time
Settings for connecting to MySQL with Spring Boot + Spring JDBC
Include external jar in package with Spring boot2 + Maven3
How to set Dependency Injection (DI) for Spring Boot
How to apply HandlerInterceptor to http inbound-gateway of Spring Integration
How to write a unit test for Spring Boot 2
Automatically map DTOs to entities with Spring Boot API
If you want to separate Spring Boot + Thymeleaf processing
[Java] How to omit spring constructor injection with Lombok
Access the built-in h2db of spring boot with jdbcTemplate
05. I tried to stub the source of Spring Boot
How to create a Spring Boot project in IntelliJ
I tried to reduce the capacity of Spring Boot
[Spring Boot] How to create a project (for beginners)
Organized how to interact with the JDK in stages
[Rails] How to deal with URL changes after render
[Introduction to Spring Boot] Submit a form using thymeleaf
How to use CommandLineRunner in Spring Batch of Spring Boot