Leave a Reply

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

Notify of
avatar

Konstantin Petrishev
Guest
Konstantin Petrishev
6 months 5 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
7 months 29 days ago

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

Mohit Bhagat
Guest
Mohit Bhagat
8 months 4 days ago

Are these instances obtained from Pool or are these singleton ?

Tamoghna Ghosh
Guest
Tamoghna Ghosh
8 months 9 days ago

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

Igor Chistruga
Guest
Igor Chistruga
10 months 4 days ago

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

Igor Chistruga
Guest
Igor Chistruga
10 months 5 days ago

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

Neeti Jain
Guest
Neeti Jain
11 months 1 day 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
11 months 1 day 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
8 months 4 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
Павел Туз
11 months 14 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
8 months 23 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
Павел Туз
11 months 14 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
8 months 4 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
8 months 4 days ago

@Autowired annotation will do that for you.

1 2 3
wpDiscuz