Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Work in progess...
- Be on the latest Spring Boot
- Don't use `boot` for a package name that contains auto-config, instead used `autoconfigure`
- Unusual to prefix classes with `SpringBoot`
- Try to avoid using enabling flags to control bean creation. If you need to control whether a bean needs to be created use an additional or different kind of condition that can be detected.
- ## Configuration properties
- Make sure you use the configuration metadata annotation processor and add appropriate docs to your config properties (to provide automatic tool support for your starter)
- Make sure your config property keys are too long and unwieldy - consider that they'll be used in the right context, so don't have to necessarily be totally descriptive for isolated use.
- Make sure the property types are right, as Spring Boot will often give you lots of nice built in support (e.g. use `java.util.Duration` rather than `int`)
- Field javadoc in a `@Configurationproperties` object should not use javadoc tags.
Add Comment
Please, Sign In to add comment