Leave a Reply

38 Comments on "Spring Boot Quick Start 17 – Creating a business service"

Notify of
avatar

Konstantin Petrishev
Guest
Konstantin Petrishev
3 months 16 days ago

hi JavaBrains ! Your course is awesome- thank u !!! Why u write -return topicService.getAllTopics()insteadreturn new TopicService().getAllTopics() –???

sharad pratap
Guest
sharad pratap
5 months 8 days ago

Awesome person! Awesome knowledge! Awesome technique to explain! really appreciated!

Mohit Bhagat
Guest
Mohit Bhagat
5 months 14 days ago

Are these instances obtained from Pool or are these singleton ?

Tamoghna Ghosh
Guest
Tamoghna Ghosh
5 months 19 days ago

Its very basic can u please add videos for swagger, performance improvement also

Igor Chistruga
Guest
Igor Chistruga
7 months 14 days ago

Instead of Spring's Autowired you can use Java's Inject – effect would be the same

Igor Chistruga
Guest
Igor Chistruga
7 months 15 days ago

Instead of Spring's Autowired you can use Java's Inject – effect would be the same

Neeti Jain
Guest
Neeti Jain
8 months 11 days ago

Sir what is exactly use of service as when we were using controller same output was generated ie. list of topics

Neeti Jain
Guest
Neeti Jain
8 months 11 days ago

Sir what is exactly use of service as when we were using controller same output was generated ie. list of topics

Bhavya Shah
Guest
Bhavya Shah
5 months 14 days ago

Service is created so that all your Business logic can be put inside that. It's a systematic manner and it is generally preferred.

Павел Туз
Guest
Павел Туз
8 months 24 days ago

It works, but How does the Spring inject TopicService? It has a private modifier and there is NO any setters and constructors!

Ghanshyam Patel
Guest
Ghanshyam Patel
6 months 2 days ago

Павел Туз I was wondering the same thing I found on stack overflow that it uses reflecting to wire it up. stackoverflow.com/questions/28694204/how-does-autowired-annotation-works-for-a-private-field

Павел Туз
Guest
Павел Туз
8 months 23 days ago

It works, but How does the Spring inject TopicService? It has a private modifier and there is NO any setters and constructors!

Ghanshyam Patel
Guest
Ghanshyam Patel
5 months 14 days ago

Павел Туз I was wondering the same thing I found on stack overflow that it uses reflection to wire it up. stackoverflow.com/questions/28694204/how-does-autowired-annotation-works-for-a-private-field

Bhavya Shah
Guest
Bhavya Shah
5 months 14 days ago

@Autowired annotation will do that for you.

1 2 3
wpDiscuz