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

Hot Reloading on GraalVM

I've recently upgraded from OpenJDK 8 to GraalVM 20.1.0 (OpenJDK 11.0.7). Does anyone have any ideas how to implement hot class reloading (or at least web asset redeployment). Spring-Boot-Devtools doesn't pick up the changes. HotSpotAgent (DCEVM)…
sparkyspider
  • 13,195
  • 10
  • 89
  • 133
0
votes
0 answers

Intellij Hot Reload doesn't work properly after reload it is unable to find the spring injected bean

I am working with a spring boot project in intelliJ and seems like hot reloading is not working as expected. I have configured the project and IDE so that hot reload should work i.e i have checked build project automatically under settings also in…
0
votes
2 answers

spring boot dev tools

I'm writing a REST API in spring boot that generates a class, controller and repository at runtime. I'm using dev tools to recompile the class once the code is generated. I have included the dev tools dependencies in my pom.xml and everything works…
0
votes
1 answer

Spring boot devtools and ActiveJDBC integration

Is there any way to integrate the auto-restart function of Spring boot devtools with the ActiveJDBC's instrumentation function? There is also a need to provide instrumentation every time there is a change in the model or DB, but the code generated…
0
votes
0 answers

HttpSecurity With SpringBootDev

I'm working on spring reload with spring dev tools in remote app. I got a bug with HttpSecurity configuraiton. As explain on Here, I put this in config http security : http.requestMatchers("/.~~spring-boot!~/restart").anyRequest().anonymous() …
0
votes
1 answer

How to dynamically recompile and deploy Java project that a Spring Boot project is dependent upon?

I have a Spring Boot Maven project that has Spring Boot DevTools enabled so that when I change code in the project it will automatically get reloaded. I also have a dependent project that I'm referencing in the pom.xml:
Kevin
  • 177
  • 2
  • 16
0
votes
1 answer

How can I make spring-boot-devtools work without @EnableAutconfiguration or @SpringBootApplication?

I'm working on an application using spring-boot v1.3.5.RELEASE, which doesn't use @SpringBootApplication nor @EnableAutconfiguration (customer requirement). I want to enable spring-boot-devtools to have the "restart" feature in my IDE. I've put it…
Tusc
  • 1,912
  • 1
  • 11
  • 8
0
votes
0 answers

Issue with Spring-Boot-Devtools compatibility with Intellij IDEA, compiltion error on Spring-Boot-Devtools live-reload

I am facing hard time in the live reload using Spring-Boot-Devtools. Every time I update my controller class, the spring couldn't find the dependencies which are injected using constructor injection. Suppose I am having this class class…
The Coder
  • 3,447
  • 7
  • 46
  • 81
0
votes
1 answer

Troubleshooting spring devtools

I'm having trouble with spring devtools. it's not picking up any changes to class files. I've confirmed as much as I can in terms of configuration and files actually being changed. What are my options in terms of getting additional information (e.g.…
levant pied
  • 3,886
  • 5
  • 37
  • 56
0
votes
0 answers

How to fix problem of spring-boot-devtools with axon?

I have to use spring-boot-devtools & axon in spring-boot application. I have included both of them in pom.xml. It is not working. Application fails to start. I have tried to run application without using spring-boot-devtools then it works perfectly…
0
votes
0 answers

spring tool suite 4 console prints a lot of thread related logs

I downloaded Spring tool suite 4 and now i am trying to run my spring boot application. but i ran into this issue of lots of unnecessary logs being printed on my console. I restarted STS as well as my pc but none of it worked. this keeps printing…
sagar limbu
  • 1,202
  • 6
  • 27
  • 52
0
votes
1 answer

Dev mode dependency for gradle in IDEA

I want to add dependency on spring-boot-devtools but only for development. I try to achieve this by having this snippet in my build.gradle: if (project.hasProperty('use-spring-boot-devtools')) { compile…
Alex Dvoretsky
  • 938
  • 9
  • 21
0
votes
1 answer

Spring Boot Devtools: exclude multiple modules from restart classloader

From documentation Customizing the Restart Classloader, you can add devtools dependency and exclude unneeded jars from restart classloader with META-INF/spring-devtools.properties. Problem I came to multimodule maven project. About 50 modules.…
VB_
  • 45,112
  • 42
  • 145
  • 293
0
votes
1 answer

Spring Boot Devtools how to reload Maven multiple dependent modules in the independent module?

I have a multiple modules Maven with this structure: app-parent -------app-library (Hibernate data entities layer) -------app-main (contains app-library as dependency), Spring Boot web application. The simple pom.xml files for these…
Bằng Rikimaru
  • 1,512
  • 2
  • 24
  • 50
0
votes
1 answer

Spring Boot Dev Tools not properly detecting auto restart for jar dependency

This one has me scratching my head. I have a Spring Boot 1.5.12 web app (with maven project) that has a dependency that is another Spring Boot 1.5.12 JAR file (as maven project). I want the web app to auto restart whenever the JAR file is rebuilt.…
gooboo
  • 141
  • 1
  • 8