File tree Expand file tree Collapse file tree
spring-data-eclipse-store/src/main/java/software/xdev/spring/data/eclipse/store/repository/config Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1818import org .eclipse .store .integrations .spring .boot .types .configuration .EclipseStoreProperties ;
1919import org .eclipse .store .integrations .spring .boot .types .factories .EmbeddedStorageFoundationFactory ;
2020import org .eclipse .store .storage .embedded .types .EmbeddedStorageFoundation ;
21+ import org .slf4j .Logger ;
22+ import org .slf4j .LoggerFactory ;
2123import org .springframework .beans .factory .ObjectProvider ;
2224import org .springframework .beans .factory .annotation .Autowired ;
2325import org .springframework .beans .factory .annotation .Value ;
5456})
5557public abstract class EclipseStoreClientConfiguration implements EclipseStoreStorageFoundationProvider
5658{
59+ private static final Logger LOG = LoggerFactory .getLogger (EclipseStoreClientConfiguration .class );
60+
5761 protected final EclipseStoreProperties defaultEclipseStoreProperties ;
5862 protected final EmbeddedStorageFoundationFactory defaultEclipseStoreProvider ;
5963
@@ -157,7 +161,15 @@ protected boolean shouldShutdownStorageOnContextClosed()
157161 }
158162
159163 // Spring Boot DevTools Restart enabled?
160- return this .springDevtoolsRestartEnabled ;
164+ final boolean enabled = this .springDevtoolsRestartEnabled ;
165+ if (enabled )
166+ {
167+ LOG .warn ("Will shut down storage because Spring Boot DevTools Restarting is active. "
168+ + "This may cause some unexpected behavior. "
169+ + "For more information have a look at "
170+ + "https://spring-eclipsestore.xdev.software/known-issues.html#_spring_developer_tools" );
171+ }
172+ return enabled ;
161173 }
162174
163175 /**
You can’t perform that action at this time.
0 commit comments