[go: nahoru, domu]

Skip to content

Latest commit

 

History

History
 
 

spring-boot-under-the-hood

spring-boot under the hood

This example is about spring-boot in general, not only 5th…​

build and run

bash gradlew -t bootRun

spring-boot POWER

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

own starters

  1. 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.

  2. create src/main/resources/META-INF/spring.factories file

src/main/resources/META-INF/spring.factories

TODO: finish readme…​

links: