Leave a Reply

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

Notify of
avatar

Ankit Singh
Guest
Ankit Singh
2 months 29 days ago

How can we directly use the getAllTopics method in the service when it's not a static method?

David Carey
Guest
David Carey
1 month 12 days ago

Sir can you tell best way to learn spring boot any other channel than this one.

saketh manupati
Guest
saketh manupati
1 month 29 days ago

that is the reason why he used the object instead of class itself. topicService.getAllTopics() instead of TopicService.getAllTopics(). And if you see that the instance for topicService is created with an annotation @Autowired which is what creates instance equivalent to TopicService topicService = new TopicService(); Hope it helps

wpDiscuz