Skip to content

Commit e82f1bf

Browse files
Updated docs for Spring Developer Tools
1 parent 3d10fbe commit e82f1bf

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

docs/modules/ROOT/pages/known-issues.adoc

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,23 @@ There is a library to version your data in the store called https://github.com/x
2929
This helps you keep your data up to date regardless of the current version.
3030

3131
We created https://github.com/xdev-software/spring-data-eclipse-store/issues/33[an issue] for that but right now we *do not support XDEVs MicroMigration*.
32+
33+
== Spring Developer Tools
34+
35+
Using https://docs.spring.io/spring-boot/reference/using/devtools.html[Spring Developer Tools] (`spring-boot-devtools`) can lead to serious issues in your project.
36+
That is manly due to the https://docs.spring.io/spring-boot/reference/using/devtools.html#using.devtools.livereload[LiveReload feature] and the usage of a "Restart Classloader".
37+
38+
This leads to problems within EclipseStore and can cause issues with discovering beans (https://github.com/spring-projects/spring-boot/issues/41011[Example Issue]).
39+
40+
If you must use the Spring Developer Tools, make sure to https://docs.spring.io/spring-boot/reference/using/devtools.html#using.devtools.restart.disable[disable restart].
41+
42+
[source,java,title="Example how to disable restart"]
43+
----
44+
@SpringBootApplication
45+
public class MyApplication {
46+
public static void main(String[] args) {
47+
System.setProperty("spring.devtools.restart.enabled", "false");
48+
SpringApplication.run(MyApplication.class, args);
49+
}
50+
}
51+
----

0 commit comments

Comments
 (0)