/spring-boot-starter-signature

Primary LanguageJavaApache License 2.0Apache-2.0

Overview

In this project was implemented custom Spring Boot starter

Also it was written test.

You can use this starter with next dependency:

       <dependency>
           <groupId>com.github.bbodnar.springbootstarner.signature</groupId>
           <artifactId>signature-starter</artifactId>
           <version>0.0.1-SNAPSHOT</version>
       </dependency>

And you can configure this starter with property file

demo.signature.username=
demo.signature.extra.retention-period=
demo.signature.enable=

It was used this tutorial

Workflow Spring Boot with starters is next:
  1. @SpringBootApplication
  2. @EnableAutoConfiguration
  3. @Import({EnableAutoConfigurationImportSelector.class})
  4. List<String> configurations = SpringFactoriesLoader.loadFactoryNames() - it takes files spring.factories, where is pointed a lot of configurations, for example
    org.springframework.boot.autoconfigure.EnableAutoConfiguration=\
  com.github.bbodnar.signature.starter.autoconfigure.SignatureAutoConfiguration
  1. 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 {
}

Release Notes

Can be found in RELEASE_NOTES.

Authors

Contributing

Please, follow Contributing page.

Code of Conduct

Please, follow Code of Conduct page.

License

This project is Apache License 2.0 - see the LICENSE file for details