• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
  • Paul Clapham
Sheriffs:
  • paul wheaton
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Piet Souris
Bartenders:
  • Mike London

What main annotations should developer learning spring boot know ?

 
Ranch Hand
Posts: 2637
13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In Spring Boot, one doesn't need to know the annotations ComponentScan, EnableAutoConfiguration and Configuration. Instead one needs to know the annotation SpringBootApplication. What other main annotations should one know ?
Thanks
 
Saloon Keeper
Posts: 14706
331
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
How do you figure you don't need Configuration?

Configuration and Autowired are probably the most important ones, although I believe Inject can be used instead of Autowired as well.

The point is moot though. Use the appropriate annotation at the appropriate time, even if the annotation is not used that often.
 
Monica Shiralkar
Ranch Hand
Posts: 2637
13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Stephan van Hulst wrote:How do you figure you don't need Configuration?



Becuase SpringBootApplication annotation automatically takes care of Configuration annotation too.
 
reply
    Bookmark Topic Watch Topic
  • New Topic