<dependency>
<groupId>com.github.bbodnar.springbootstarner.signature</groupId>
<artifactId>signature-starter</artifactId>
<version>0.0.1-SNAPSHOT</version>
</dependency>
demo.signature.username=
demo.signature.extra.retention-period=
demo.signature.enable=
It was used this tutorial
@SpringBootApplication
@EnableAutoConfiguration
@Import({EnableAutoConfigurationImportSelector.class})
List<String> configurations = SpringFactoriesLoader.loadFactoryNames()
- it takes filesspring.factories
, where is pointed a lot of configurations, for example
org.springframework.boot.autoconfigure.EnableAutoConfiguration=\
com.github.bbodnar.signature.starter.autoconfigure.SignatureAutoConfiguration
- Load them with condition (It's a lot of condition annotations):
@ComponentScan("com.github.bbodnar.signature.starter")
@ConditionalOnProperty(value = "demo.signature.enable", havingValue = "true", matchIfMissing = true)
@EnableConfigurationProperties(SignatureProperties.class)
public class SignatureAutoConfiguration {
}
Can be found in RELEASE_NOTES.
- Bohdan Bodnar - b-bodnar
Please, follow Contributing page.
Please, follow Code of Conduct page.
This project is Apache License 2.0 - see the LICENSE file for details