Hi folks! A newbie question (didn't have a lot of ...
# spring
d
Hi folks! A newbie question (didn't have a lot of background in Java before learning Kotlin). How do I know if there are existing notations annotations to help me to do certain things?
m
You mean annotations?
1
🙌 1
s
This is a pretty broad question, but perhaps it might help to figure out what are some use cases annotations are supposed to help solve? So maybe read about annotations and aspected oriented programming for example and then when you encounter something that feels like “this could be solved with an annotation” you can Google it to see if it exists?
d
Thanks for your answer @Saharath Kleips, but is there a more systematic way? What you suggested requires experience to have the "feels"
s
You don’t know what you don’t know 🤷 Since we’re in #spring I guess you could just go through all of the major spring libraries / libraries you’re using and see what annotations they expose.
🙌 1
Although I think just getting an overview of some cross cutting concerns and then just assuming Spring probably does it for you (because at times it seems to do everything for you) would probably save you a lot of time?
🙌 1
✔️ 1
t
The official Spring documentation covers a lot of different use-cases in depth, I’d highly recommend skimming it at least if you’re going to spend much time building Spring apps. Spring Boot: https://docs.spring.io/spring-boot/docs/current/reference/htmlsingle/ Spring Framework: https://docs.spring.io/spring-framework/docs/current/reference/html/ I’d probably start with: • Spring’s IoC annotationsJPA / HibernateValidationSpring Test annotations