Leave a Reply

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

Notify of
avatar

Igor Chistruga
Guest
Igor Chistruga
1 month 8 days ago

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

Neeti Jain
Guest
Neeti Jain
2 months 5 days ago

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

Павел Туз
Guest
Павел Туз
2 months 18 days ago

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

Gautam Kumar
Guest
Gautam Kumar
3 months 1 day ago

i am getting this error :(Description:Field topicService in io.javabrains.springBootStarter.topics.ToppicController required a bean of type 'io.javabrains.springBootStarter.topics.TopicService' that could not be found.Action:Consider defining a bean of type 'io.javabrains.springBootStarter.topics.TopicService' in your configuration.

Ravi Shankar
Guest
Ravi Shankar
3 months 4 days ago

I have gone through your restful completely . Now when I am seeing this springMVC how are these two different.

Guram Kankava
Guest
Guram Kankava
3 months 10 days ago

Thank you very much. super duper videos …

Nitin Gupta
Guest
Nitin Gupta
4 months 4 days ago

Please share the projects also, which you create in your demos . Thanks

nitin kunal
Guest
nitin kunal
5 months 28 days ago

Do bussiness service needs to be singleton ?

Mac New
Guest
Mac New
6 months 16 days ago

Sir please show the code of Topic.java

Sopheak Dy
Guest
Sopheak Dy
6 months 10 days ago

package MyPackage.topics;public class Topics{ private String id; private String name; private String description; public Topics() { } public Topics(String id, String name, String description) { super(); this.id = id; this.name = name; this.description = description; } public String getId() { return id; } public void setId(String id) { this.id = id; } public String getName() { return name; } public void setName(String name) { this.name = name; } public String getDescription() { return description; } public void setDescription(String description) { this.description = description; } }

Ankit Singh
Guest
Ankit Singh
9 months 18 days ago

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

Gnaneshwar Rao
Guest
Gnaneshwar Rao
6 months 4 hours ago

If you are directly jumping into using Spring Boot without the experience of using an MVC framework, then this may seem little complicated to understand whats going on. If you are a newbie, I suggest you to know the concepts of MVC, ORM, POJO and java annotations. Not to mention, some basics of Apache Maven.

David Carey
Guest
David Carey
6 months 8 hours ago

Thank you…

David Carey
Guest
David Carey
8 months 1 day ago

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

saketh manupati
Guest
saketh manupati
8 months 18 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