Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Spring
Search Coderanch
Advance search
Google search
Register / Login
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
Forum:
Spring
What main annotations should developer learning spring boot know ?
Monica Shiralkar
Ranch Hand
Posts: 2637
13
posted 2 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
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
Stephan van Hulst
Saloon Keeper
Posts: 14706
331
posted 2 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
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
posted 2 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Stephan van Hulst wrote:
How do you figure you don't need
Configuration
?
Becuase SpringBootApplication annotation automatically takes care of Configuration annotation too.
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
SQS AWS Integration:can't make sense of this example code
RepositoryRestResource or restful controller?
Spring boot and properties files in a multi module maven project
Spring @RestController not working
Scheduling a run for method in java code
More...