Shendor commented on code in PR #375:
URL: https://github.com/apache/ignite-extensions/pull/375#discussion_r4775460359
##########
modules/spring-boot-autoconfigure-ext/spring-boot-autoconfigure/src/main/java/org/apache/ignite/springframework/boot/autoconfigure/IgniteRepositoryAutoConfiguration.java:
##########
@@ -47,7 +48,7 @@
*/
@Configuration
@ConditionalOnBean(Ignite.class)
-@ConditionalOnClass(IgniteRepository.class)
+@ConditionalOnClass({Repository.class, IgniteRepository.class})
Review Comment:
A regression test showed that the original condition could activate
repository autoconfiguration when Spring Data was unavailable, causing
application startup to fail. The additional check makes it back off cleanly,
keeping repository support optional.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]