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
2 answers

Drools 6.5: java.lang.RuntimeException: Illegal class for global. Expected [com.user.PersonAccount], found [com.user.PersonAccount]

I'm using the "org.springframework.boot:spring-boot-devtools" dependency in my Grails application for the live reload of the application on code change. The problem is, it seems that this dependency is causing some conflict with drools. On …
1
vote
1 answer

Spring Boot Devtools Remote cause error at Pivotal Cloud Foundry

Sorry, cant post images with low reputation) Here is my settings: Spring Boot: 2.3.0.RELEASE secret build.gradle Intellij Idea IDE Run/Debug Configuration I have this app working at Pivotal Cloud Foundry. I have runing Remote App and after build…
1
vote
0 answers

IntellijIdea with spring restart class loader loads class files

During testing I found out, that my deserializer of avro messages fails for some testing schema. It was completely puzzling to me for a long time. So my avro deserializer deserializes someNameSpace.someType class, stored in GenericRecord return…
Martin Mucha
  • 2,385
  • 1
  • 29
  • 49
1
vote
2 answers

How to exclude classes generated with WSDL from Spring-Devtools restart cycle?

When I start Spring Boot application with Spring-Devtools enabled and classes generated from the WSDL schema I get: Caused by: java.lang.IllegalArgumentException: org.wsdl.WsdlServiceWs referenced from a method is not visible from class loader I…
1
vote
2 answers

No Scope registered for scope name 'restart'

I am getting the following stack trace when trying to start an app using Spring Boot Devtools. 2019-03-15T08:20:26,929 WARN o.s.c.a.AnnotationConfigApplicationContext:557 - Exception encountered during context initialization - cancelling refresh…
Mark Sholund
  • 1,273
  • 2
  • 18
  • 32
1
vote
1 answer

Spring Boot Dev Tools Restart Not Working

I'm trying to get restart working with Spring Boot DevTools. I have been following the instructions provided here: https://docs.spring.io/spring-boot/docs/current/reference/html/using-boot-devtools.html I am using gradle and included this in my…
yspotts
  • 73
  • 1
  • 6
1
vote
1 answer

SpringBoot Devtools without IDE

I was wondering whether is possible to use the devtools within spring-boot and Maven only, without any IDE. My question is about quick changes tests, using sublime text or notepad++ and console mvn spring-boot:run. As I know, It could be done using…
Renato Barros
  • 177
  • 3
  • 14
1
vote
2 answers

Spring Devtools triggers restart when changing excluded files

I have a Spring Boot Web Project that uses Joinfaces and Primefaces. The application extends from SpringBootServletInitializer and also generates a war file. For development I start my Project (in Eclipse) using RunAs -> Spring Boot App. I've added…
morecore
  • 900
  • 3
  • 14
  • 32
1
vote
0 answers

Spring Boot restarting after static files changed

I have a Spring Boot project with a static website (just css, js, html). I added Spring Boot Dev Tools to the project. When I change some static file, then click "Run" > "Reload Changed Classes", Spring Boot (Tomcat) restarts. This happens in…
Luís Soares
  • 5,726
  • 4
  • 39
  • 66
1
vote
1 answer

hot swapping not working for Spring boot with Intellij and spring-boot-starter-web

My spring boot microservice uses spring-boot-starter-web and I'm trying to enable hot swapping in intellij. I tried adding the this dependency: org.springframework.boot
1
vote
1 answer

Nomin and Spring Boot application: recursive mapping rule a = b causes infinite loop

As I had already few issues with combination Nomin, Eclipse and Groovy (see link1 and link2), I am again struggling with it. My application works with JUnit Tests, both in Console via Gradle and Eclipse. But now it doesn't want to work when…
Michael Hegner
  • 5,555
  • 9
  • 38
  • 64
1
vote
1 answer

Spring-boot and spring boot dev tools integration not showing the updated class changes

I am trying to follow this example to do spring boot and spring boot dev tools integration to do automatic restart. The classes in the build folder are getting updated when i run build --continuous task but the application still talks to the old…
somename
  • 978
  • 11
  • 30
1
vote
0 answers

Spring Boot Devtools do not work with Gradle when declared as optional dependency

Following the documentation I decided to use optional scope for Devtools using special propdeps plugin for Gradle: Flagging the dependency as optional is a best practice that prevents devtools from being transitively applied to other modules using…
1
vote
1 answer

Removing/shutdown Firebase in Java app (for hot redepoy)

I tried to use org.springframework.boot:spring-boot-devtools to speed up development. My project uses Firebase to authenticate some requests. Firebase initialized via: @PostConstruct public void instantiateFirebase() throws IOException { …
gavenkoa
  • 45,285
  • 19
  • 251
  • 303
1
vote
3 answers

Spring Boot DevTools doesn't reaload the application

I am using Eclipse and I added in my pom.xml this dependency: org.springframework.boot spring-boot-devtools true So in another…
Rares
  • 597
  • 1
  • 5
  • 21