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
2
votes
1 answer

How to make Spring Boot Kotlin bootRun and devtools restart faster?

I'm working on a Spring Boot + Kotlin application and want to speedup the bootRun startup and devtools restart time. The restart currently takes around 20-30 seconds which feels painfully slow compared to the near-instant refresh of frontend changes…
mowwwalker
  • 16,634
  • 25
  • 104
  • 157
2
votes
1 answer

Saving entities with Hibernate 5.1 and Spring 5.2.9 fails to save entity (spring-boot 2.3.4, spring-boot-devtools)

[Edit: fixed spring version in q to 5.2.9. v2.3.4 is the aggregated maven dep.] I've gone through heaps of posts to try to figure this out. Seems like there's a huge compatibility issue, but I can't figure out which versions to change to. I don't do…
Lars-Erik
  • 301
  • 3
  • 17
2
votes
0 answers

Too high Spring Boot application idle CPU usage when using devtools

As soon as I start a Spring Boot 2.2 application from Eclipse on my Windows 10 Laptop I notice around 10% of permanent CPU usage, and the clock freq. is also barely below 2 GHz, even if the application is sitting there idle. When I stop the…
yglodt
  • 13,807
  • 14
  • 91
  • 127
2
votes
1 answer

Spring Boot devtools - sometimes reloaded bean is not picked up on restart

I have some troubles with spring-devtools restart feature. It seems that sometimes for unknown reasons changed and reloaded bean is not picked up. Application class: @SpringBootApplication public class DemoApplication { public static void…
chrosciu
  • 304
  • 3
  • 9
2
votes
0 answers

ClassCastException by optaplanner solver.solve()

Now that I know that this error is related to spring-boot-devtools, and that the error will not occur if spring-boot-devtools is removed, I wonder if there is a solution without removing spring-boot-devtools java.lang.ClassCastException:…
2
votes
0 answers

Spring boot devtools does not consider exclude property

I am using Spring Boot with Gradle and added the Devtools plugin. My application is creating files in src/main/resources so I don't want it to be restarted when this is changed. I have tried the following settings in application config…
Cosmin D
  • 639
  • 1
  • 11
  • 24
2
votes
0 answers

Netbeans does not always update target/classes/*.class file on incremental compile on a Maven project

I use Netbeans 9.0 with a Java Maven project with SpringBoot 2.1M4. The application is running in a terminal window with Spring DevTools enabled so that it reloads every time a .class in target/classes is touched. This setup generally works fine.…
lathspell
  • 3,040
  • 1
  • 30
  • 49
2
votes
2 answers

Spring Boot triggers full restart instead of reload on changes over static files

In my Spring Boot project I have the following structure: - src - main - java - resources - static - css - js - img - webapp - WEB-INF - views According with the documentation at Excluding…
2
votes
0 answers

Intellij Idea Spring boot dev-tools with liveloader extension error on creating bean

I am trying to make my Java application automatically updating after making changes. When I change html or css files auto updating content is working perfectly but when i'm changing the java class my project rebuild automatically but throws an…
Ppyyt
  • 125
  • 2
  • 9
2
votes
0 answers

Ignore .spring-boot-devtools.properties in tests

Spring Boot devtools allow you to define global configuration outside of your application sources by placing a file .spring-boot-devtools.properties into your home directory, which takes precedence over the bundled configuration, according…
Natix
  • 14,017
  • 7
  • 54
  • 69
2
votes
1 answer

IntelliJ fails to start Spring Boot/Gradle application when using Spring Boot developer tools

I have a Spring Boot application which fails to start in IntelliJ 2017.1.5, as soon as I add the Spring Boot developer tools to the Gradle build like this: dependencies { compile("org.springframework.boot:spring-boot-starter-web") …
anothernode
  • 5,100
  • 13
  • 43
  • 62
1
vote
0 answers

Spring Devtools Live reload in Docker ist not working

I've tried to configure the live reload in spring boot application, using Intellij and Docker, but this is not working. IDE: IntelliJ IDEA 2023.1.2 (Community Edition) OS: Ubuntu 22.04 Open JDK: 20.0.1 pom.xml
1
vote
1 answer

Spring boot devtools with Spring mvc

Is it possible to use spring-boot-devtools in a Spring MVC project? I basically want the .jsp pages and other static resources to reload automatically without server restart.
Erfan Ahmed
  • 1,536
  • 4
  • 19
  • 34
1
vote
0 answers

Enable Spring DevTools live reload in Netbeans

I am struggling with the alleged live-reload functionality of Spring DevTools (in Netbeans). I have it included in my dependencies: developmentOnly 'org.springframework.boot:spring-boot-devtools' When I run my application, it's showing all the signs…
Rick
  • 397
  • 3
  • 16
1
vote
0 answers

Spring Boot – Developer Tools - Remote mode throws CertificateException: No name matching localhost found

I am trying to run Spring Boot Dev Tools to remote debug my application using the “org.springframework.boot.devtools.RemoteSpringApplication“ option, as described…
IgalHaddad
  • 41
  • 4