-
Notifications
You must be signed in to change notification settings - Fork 512
Description
For grails 4 I'm using version 1.2.8 of spring-loaded. It works well, except reloading of methods with @transactional
apache/grails-core#12630 (comment)
But during upgrade to grails 5.2.6 for one of my applications I got a jvm crash during application startup with for some GORM classes
apache/grails-core#11649 (comment)
With spring-loaded 1.3.0 (and also with springloaded-1.3.0.BUILD-20210404.024037-2.jar provided by @Dirk-27 apache/grails-core#11649 (comment)) application starting up well, but changes in a code not applied during reload:
I see recompilation in the log, but behaviour of application not changed.
For example I have added to a controller action logs, but don't see it during action execution (throwing exception too)
I have seen same problems with grails 4 and spring-loaded 1.3.0 before. Also I have checked this new version of library with another three grails 5* applications and see a same problem. Working well, but no result =)
Java corretto-1.8.0_362
build.gradle
configurations {
agent // for hot reload
developmentOnly
runtimeClasspath {
extendsFrom developmentOnly
}
}
dependencies {
agent files('lib/springloaded-1.3.0.BUILD-20210404.024037-2.jar')//"org.springframework:springloaded:1.3.0.RELEASE"
// developmentOnly("org.springframework.boot:spring-boot-devtools")
....
}
application.groovy
...
spring.devtools.restart.enabled = false
...
and repeat it in application.yml (just for test)
spring:
devtools:
restart:
enabled: false
What I'm duing wrong??