Questions tagged [spring-boot-devtools]

`spring-boot-devtools` is Spring Boot subproject that enable quick reloading of static resources (by disabling template engines cache) and lightweight context reload when changes to `.class` files detected.

<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-devtools</artifactId>
</dependency>

or:

dependencies {
    compile("org.springframework.boot:spring-boot-devtools")
}

Docs:

97 questions
19
votes
4 answers

Live reload for thymeleaf template

When I change a thymeleaf .html file residing inside /templates , I expect the browser to automatically reload the page. I have the live reload plugin installed and its able to do a handshake with the spring boot server. However , upon chaning a…
Rpant
  • 974
  • 2
  • 14
  • 37
17
votes
1 answer

How to fix "is in unnamed module of loader 'app';" with hibernate.load

I'm getting the following error after i try to load an entity by id in hibernate Course is in unnamed module of loader 'app'; here is an example of my hibernate load code: Course temp = (Course) currentSession.load(Course.class, cid); P.S: i…
Farshid
  • 187
  • 1
  • 1
  • 5
17
votes
9 answers

Spring Boot DevTools not working in Eclipse

I built an application using Spring, JPA, MySQL and Web. I developed a static page in template folder normally and it works. But, when I change something on static page, I can't reload it with changes. Then, I open the pom.xml and added…
John Mendes
  • 781
  • 3
  • 9
  • 18
16
votes
2 answers

java.lang.IllegalArgumentException referenced from a method is not visible from class loader

I obtained an exception when generated a stub for a WS service by wsimport in /target/class/..... and run a spring boot application with devtools. Caused by: java.lang.IllegalArgumentException: com....Service referenced from a method is not visible…
14
votes
2 answers

Gradle Spring Boot Devtools: developmentOnly and runtimeClasspath

I am puzzled by this block of code to be used in a gradle file, suggested by Spring Boot Documentation on Developer Tools configurations { developmentOnly runtimeClasspath { extendsFrom developmentOnly } } dependencies { …
leeyuiwah
  • 6,562
  • 8
  • 41
  • 71
14
votes
2 answers

Spring Boot Developer Tools Auto restart doesn't work in IntelliJ

Started spring-boot with spring-boot-devtools recently in IntelliJ and spent couple of hours trying to figure out why IntelliJ would not pick up my changes and auto restart embedded tomcat. Information at this link didn't help either:…
Samir Shaik
  • 1,000
  • 1
  • 14
  • 21
11
votes
1 answer

Why spring boot devtools called main method twice?

I'm using spring boot devtools with my project. When i write System.out.println("test"); before main, it printing twice in console. public static void main(String[] args) { System.out.println("test"); …
mrtasln
  • 574
  • 1
  • 5
  • 18
9
votes
0 answers

Spring boot - running integration tests in interactive mode

When developing a web application SpringBoot dev tools module is handy for speeding up the compile and run loop. However, I could not find any similar feature for integration tests. More specifically, let's say I have an integration test (annotated…
samvel1024
  • 1,123
  • 4
  • 15
  • 39
9
votes
2 answers

spring-boot-devtools doesn't reload dependent modules in multi-module maven project

Before I start, I'd like to say that I already tried the solution proposed in spring-boot-devtools reload of multi-module maven project changes, which didn't work for me. Problem: I have a multi-module Spring Boot project of this sort: The module…
Saraph
  • 992
  • 1
  • 11
  • 25
7
votes
6 answers

spring-boot-devtools Automatic Restart not working

I have a working Spring Boot 2.25 application built with mvn. As per this documentation I add org.springframework.boot spring-boot-devtools
spraff
  • 32,570
  • 22
  • 121
  • 229
7
votes
1 answer

Spring boot devtools Livereload server not starting when spring-devtools.properties is configured

I am running a spring boot application on an embedded tomcat server on eclipse in my local environment with spring dev tools enabled. And I also have spring web flow configured in the application. Below are the version details. Spring Boot…
Zulfiqar Ali
  • 93
  • 1
  • 8
7
votes
2 answers

Spring-Boot-Devtools doesn't want to reload process (doesn't pick up proper classpaths?)

I have a small Spring Boot project (from spring-boot-starter). Everything configured, i want to use Spring-Boot-Devtools for automatic reloading. When i launch my project (mvn spring-boot:run -X) from my git repo working dir, i can see: maven…
razor
  • 2,727
  • 6
  • 33
  • 45
6
votes
3 answers

java.lang.ClassCastException: class ... is in unnamed module of loader 'app' - spring-boot-dev-tools

We have a larger Spring boot application which causes the following exeception: java.lang.ClassCastException: class jpa.XVersion cannot be cast to class jpa.XVersion (jpa.XVersion is in unnamed module of loader 'app'; jpa.XVersion is in unnamed…
khmarbaise
  • 92,914
  • 28
  • 189
  • 235
6
votes
0 answers

Spring Boot Devtools not working using Gradle

I have created a simple Spring Boot app using IntelliJ that use Spring Boot Devtools as dependency and Gradle as build automation with option: Use default gradle wrapper. However, the Devtools seems not working. When I change my html file, the page…
chidx
  • 61
  • 2
6
votes
3 answers

Spring Boot application fails to run - spring.resources.cache-period were left unbound

I'm having difficulties with my Spring Boot application which is not willing to run. According to logs the reason of this situation is unbound spring.resources.cache-period property. This property however is set in application.properties and…
1
2 3 4 5 6 7