This example is about spring-boot in general, not only 5th…
out-of-the-box conditions
// check if bean is in spring factory:
@OnBeanCondition
// check if class is in classpath:
@OnClassCondition
// on thruthy evaluated express condition:
@OnExpressionCondition
// on expected java version
@OnJavaCondition
// on expected JNDI branch
@OnJndiCondition
// check if property exists
@OnPropertyCondition
// check if resource exists
@OnResourceCondition
// check if WebApplicationContext exists
@OnWebApplicationCondition
additional conditions for combine or merge them together
// AND condition
@AllNestedConditions
// OR condition
@AnyNestedConditions
// NOT condition
@NoneNestedConditions
-
create a starter configuration with provided by you custom functionality. In our case it’s kind of Java analog for JSON.stringify / JSON.parse from JS.
-
create src/main/resources/META-INF/spring.factories file
src/main/resources/META-INF/spring.factories
TODO: finish readme…
links: