Guest User

Untitled

a guest
Jun 24th, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 KB | None | 0 0
  1. # Work in progess...
  2.  
  3.  
  4. Be on the latest Spring Boot
  5.  
  6. Don't use `boot` for a package name that contains auto-config, instead used `autoconfigure`
  7.  
  8. Unusual to prefix classes with `SpringBoot`
  9.  
  10. 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.
  11.  
  12. ## Configuration properties
  13. 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)
  14.  
  15. 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.
  16.  
  17. 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`)
  18.  
  19. Field javadoc in a `@Configurationproperties` object should not use javadoc tags.
Add Comment
Please, Sign In to add comment