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

How does SpringBoot devtools detect application's running environment?

In my appllicaiton, I add SpringBoot devtools to improve the development speed. org.springframework.boot spring-boot-devtools true In its…
Robin Sun
  • 1,352
  • 3
  • 20
  • 45
5
votes
1 answer

How To Auto Restart Dropwizard Application After Saving Changes In File

In Spring boot Whenever files change in the classpath, applications using spring-boot-devtools will cause the application to restart. Some can be also be acheived using the JRebel, But JRebel is not Free. I am looking for the same functionality in…
Akshay Pethani
  • 2,390
  • 2
  • 29
  • 42
4
votes
3 answers

Spring Boot live reload inside a docker container not working

We've a Spring boot gradle project running inside a docker container, which uses a docker volume. Spring devtools live reload feature is used with following…
Ramanujan R
  • 1,601
  • 2
  • 23
  • 43
4
votes
1 answer

UTF-8 wrong character encoding with spring-boot-devtools

IDE settings UTF-8, OS Windows 10, Russian language. Code for console output: System.out.println("тест") Spring Boot without "spring-boot-devtools" dependency in IDEA is OK Spring Boot with "spring-boot-devtools" in Windows console is OK Spring…
4
votes
5 answers

Intelijj IDEA springboot devtools

I using Springboot to create my app, so in Springboot Doc says if I use devtools the tomcat will restart everty change in my code, but I use the maven panel to run my app just double click in spring-boot:run plugins, but when I change any code my…
Fabio Ebner
  • 2,613
  • 16
  • 50
  • 77
3
votes
0 answers

Spring Boot DevTools - RestartClassLoader problem

When using the spring boot dev tools library the are some problems with class loaders, mainly: The problem is that there are two class loaders for dedicated class. When load the class from memcache and map/cast to object of class there is an…
try_harder
  • 49
  • 1
  • 3
3
votes
1 answer

Spring Boot Dev Tools / Live Reloading - refresh of static resources is not working

In order to improve developer experience I tried to include Spring Dev Tools. My setup: Multiple modules Gradle 6.6 Spring Boot 2.4.2 Thymeleaf React with Webpack for subpages I use a multi project gradle build with a settings.gradle file and one…
peach
  • 657
  • 5
  • 26
3
votes
1 answer

Spring Boot with devtools call SOAP API

I am deploy an project Spring Boot, using devtools(spring-boot-devtools) and call a Soap service. I generate the Soap class into /src/main/resources/templates/generated and add this folder as Source Code. Because when call this Soap service, its…
user3611168
  • 335
  • 1
  • 6
  • 27
3
votes
0 answers

Exclude concrete java package from restart classloader in spring-boot-devtools

Problem: I have a complex application, currently running on Spring Boot. Start time is about 60 seconds, so I would like to use Spring Boot Devtools to reduce restart time, but with default settings it give me almost the same 60 seconds. Excluding…
user2529617
  • 103
  • 8
3
votes
1 answer

spring-boot-devtools disables debugging, cannot hit breakpoints

I am using devtools in spring-boot. org.springframework.boot spring-boot-devtools runtime I run in debugging mode, but I cannot…
Bhavya Arora
  • 768
  • 3
  • 16
  • 35
3
votes
2 answers

Could not set field value by reflection / Spring-boot-devtools

My Springboot application stop working when I integrated spring-boot-devtools Exception: org.springframework.orm.jpa.JpaSystemException: Could not set field value [com.gpch.sample.data.jsonb.StudentDoc@2efca689] value by reflection : [class…
3
votes
1 answer

Spring Boot Devtools auto restart error

I'm following this guide https://medium.com/@lhartikk/development-environment-in-spring-boot-with-docker-734ad6c50b34 to try and get auto restart, live reload and remote debugging working with my simple spring boot application in a local docker…
3
votes
2 answers

Issue with Spring STS 3.9.0 with Spring Boot devtools

I upgraded this week to the new 3.9.0 version of Spring STS. Everything is fine except when I start a Spring Boot web app (spring boot version 1.5.3), I get an error. An internal error occurred during: "Ready state…
Jeff Walker
  • 1,656
  • 1
  • 18
  • 36
3
votes
2 answers

Spring Boot Devtools restart does not automatically work with Spring Boot 1.5.4

I looked at many articles and questions on the Web about spring-boot-devtools, but still can't figure out why it is not working for me. Every time I run my app, I get the following: 17:54:28.057 [main] DEBUG…
nbkhope
  • 7,360
  • 4
  • 40
  • 58
2
votes
0 answers

Hot reloading a multi-module spring boot application with gradle

I'm trying to convert a project from maven to gradle, but I'm having trouble getting hot reloading to work the same way. I can't show the actual project so I've created two identical very simple projects. One with maven one with gradle. These…