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
1
vote
0 answers

Springboot Load-Time Weaving doesn't allow to inject a spring bean into an aspect for embedded Tomcat when devtools is used

I'm using pretty recent springboot v1.5.2 with aspectj's (v1.8.10) load time weaving. I was able to inject a spring bean into my aspectj aspect while running my application on an external tomcat and now I wonder why just the same failed for the…
0
votes
0 answers

Intellij restart

I'm having trouble restarting my project when I run it even with springboot dev-tools and IDE configured to do so. GitHub's link from the project. Attached are prints of my IDE settings. Build project automatically Allow auto-make to start even if…
0
votes
0 answers

Problem with auto-build using DevTools springboot plugin on intellij CE versione 2023.2

I'm developing a spring-boot project in Intellij Idea versione 2023.2 and I'm using DevTools dependency. I just modified the IDE in order to use properly DevTools dependency. I changed Intellij IDEA Settings in this…
0
votes
1 answer

Spring Boot DevTools does not work well with Gradle

I followed instructions from Spring website to try Spring DevTools and I cannot see the updated changes, even when i refresh my page. I tried to include dependencies in build Gradle, but still fail. Many answers on Stack Overflow are outdated.
Lightz
  • 11
  • 3
0
votes
0 answers

Grails 5 apps throw stack overflow error on development reload

Seeing this behavior on both the default grails app skeleton and fully developed apps. versions Using grails 5.3.2 ----with gradle 7.2 JDK (tried 11.0.12-open and 11.0.17-zulu) Running on standard 8080 port and with the tomcat (which I believe comes…
user2782001
  • 3,380
  • 3
  • 22
  • 41
0
votes
0 answers

devtools and Spring Security makes Spring Boot application fail to start

When I use spring-boot-devtools and Spring Security at the same time, the application fails to start. I have been try to exclude UsernamePasswordAuthenticationToken.class in spring-devtools.properties but it doesn't work. So I try to include all…
0
votes
1 answer

spring boot dockerRun with auto restart with remote debug never turning on

I'm making application spring boot project. I'm trying to make developing environment using bootRun with auto restart in spring-boot-devtools. I saw the how to do that via this question. Spring Boot bootRun with continuous build The difference…
0
votes
1 answer

spring boot app does not reload despite spring boot dev tools already installed

I already included this dependency in my pom.xml file org.springframework.boot spring-boot-devtools runtime Changed to "Build…
0
votes
1 answer

What is happening after Spring Boot Devtools logs "Starting application"

I'm trying to figure out ways to improve the restart time of my Spring Boot application when using spring-boot-devtools and see that there's consistently a ~5 second delay between these logs lines: 2022-07-03 14:35:28.602 DEBUG 82357 --- [ …
mowwwalker
  • 16,634
  • 25
  • 104
  • 157
0
votes
2 answers

spring-dev-tools does not reloading changes in project, Intellij idea

Maven dependency spring-boot-devtools does not reloading changes in a project automatically. I have solved this problem by changing parameters of "running configuration". Go to edit configuration-> In the Spring boot section you will see - Running…
0
votes
1 answer

Spring Boot Application won't start: Attribute 'access' in annotation org.springframework.nativex.hint.TypeHint should be compatible

When trying to start my spring boot application I get this stack trace: 22:21:06.948 [Thread-0] DEBUG org.springframework.boot.devtools.restart.classloader.RestartClassLoader - Created RestartClassLoader…
Peter
  • 1,844
  • 2
  • 31
  • 55
0
votes
0 answers

WebFlux and JDBC: H2 console opens with empty schema

I've seen variations of this subject multiple times around, but the answers never solved my case: I've been adding the H2 console to my WebFlux application (Spring Boot 2.6.3) and could connect to it; but couldn't see any of my tables in my JDBC…
Thomas Escolan
  • 1,298
  • 1
  • 10
  • 28
0
votes
1 answer

spring boot application with data JPA added data many time

I created Spring Boot application with data JPA and add Dev Tool dependency and created one simple login page in JSP and and Registration page . when I fill register form and register data is fetch in controller using @ModelAttribute and save this…
0
votes
0 answers

How do I instruct Spring Boot Devtools where to find dependencies in a Maven project

I've got a Spring Boot Maven project that creates an executable fat .war. I can run this .war using java -jar without any issues as all dependencies are located within the far .war. However, I can't run the project with the Spring Boot Devtools…
0
votes
1 answer

How to use spring-cloud-starter-config and spring-boot-devtools together?

spring-cloud-starter-config on its own works perfectly as well as spring-boot-devtools, but when I create a project that uses both I get this error: . ____ _ __ _ _ /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \ ( ( )\___ | '_ |…