• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Ron McLeod
  • Tim Cooke
Sheriffs:
  • Devaka Cooray
  • paul wheaton
  • Mark Herschberg
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Frits Walraven
  • Jj Roberts
Bartenders:
  • Carey Brown
  • salvin francis
  • Piet Souris

What main annotations should developer learning spring boot know ?

 
Ranch Foreman
Posts: 2387
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: 12723
277
  • 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 Foreman
Posts: 2387
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.
 
He baked a muffin that stole my car! And this tiny ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic