Leave a Reply

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

Notify of
avatar

Neeti Jain
Guest
Neeti Jain
11 days 19 hours ago

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

Павел Туз
Guest
Павел Туз
24 days 19 hours 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
1 month 7 days 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
1 month 10 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
1 month 17 days ago

Thank you very much. super duper videos …

Nitin Gupta
Guest
Nitin Gupta
2 months 11 days ago

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

nitin kunal
Guest
nitin kunal
4 months 4 days ago

Do bussiness service needs to be singleton ?

Mac New
Guest
Mac New
4 months 22 days ago

Sir please show the code of Topic.java

Sopheak Dy
Guest
Sopheak Dy
4 months 17 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
7 months 24 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
4 months 6 days ago

Thank you…

Gnaneshwar Rao
Guest
Gnaneshwar Rao
4 months 6 days 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 7 days ago

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

saketh manupati
Guest
saketh manupati
6 months 24 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