Leave a Reply

45 Comments on "Spring Boot Quick Start 29 – Making Crud Operations with Repository"

Notify of
avatar

Ankur Rampuria
Guest
Ankur Rampuria
3 days 11 hours ago
Hello Everyone,I am following the same steup but I am getting below error while create table in DB . Please note i am using Java 5 with Spring boot 1.4.3.RELEASE verison.Please hlep me out with this issue.2017-05-19 11:09:04.551  INFO 12420 — [           main] org.hibernate.Version                    : HHH000412: Hibernate Core {5.0.11.Final}2017-05-19 11:09:04.555  INFO 12420 — [           main] org.hibernate.cfg.Environment            : HHH000206: hibernate.properties not found2017-05-19 11:09:04.557  INFO 12420 — [           main] org.hibernate.cfg.Environment            : HHH000021: Bytecode provider name : javassist2017-05-19 11:09:04.757  INFO 12420 — [           main] o.hibernate.annotations.common.Version   : HCANN000001: Hibernate Commons Annotations {5.0.1.Final}2017-05-19 11:09:05.109  INFO 12420 — [           main] org.hibernate.dialect.Dialect            : HHH000400: Using dialect: org.hibernate.dialect.DerbyTenSevenDialect2017-05-19 11:09:06.935 … Read more »
Amit Tanwani
Guest
Amit Tanwani
8 days 8 hours ago

Can you please tell me how dependency is injected in TopicRepository ? which class object will get injected in variable topicRepository ?

Tuluvsaikhan Battulga
Guest
Tuluvsaikhan Battulga
10 days 5 hours ago

If you use IntelliJ, you might encounter a problem where topicRepository is not autowired. It's actually autowired,but IntelliJ doesn't recognize that. If you add Spring Data plugin in plugins, it will not show any errors.

mtst 99
Guest
mtst 99
11 days 17 hours ago

For PUT you forgot to remove id from @RequestMapping:@RequestMapping(method=RequestMethod.PUT, value="/topics") private void updateTopic(@RequestBody Topic topic){ topicService.updateTopic(topic); }and thanks a lot for these clear and step by step teachings. Please continue.

Neeraj Jassal
Guest
Neeraj Jassal
18 days 4 hours ago

You explained very well, these videos are really awesome. Thanks Koushik

Aleksander Ojciec
Guest
Aleksander Ojciec
29 days 3 hours ago

Hi, im getting some errorsaplication starts but it can't create table. Unsuccessful: drop table topic, that's what I get. Doesn't derby need anything in .properties file? I've tried to solve this but nothing worked

bhanuchirutha
Guest
bhanuchirutha
29 days 10 hours ago

is this code in github?

Angshuman Dey
Guest
Angshuman Dey
1 month 1 day ago

After annotating repository variable with @Autowired getting exception org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'com.ad.springboot.dao.StudentRepository'.Any one have any idea??

Manikanta Varahala Ganapathiraju
Guest
Manikanta Varahala Ganapathiraju
1 month 7 days ago

Hi Kaushik thank you so much for this tutorial, this is extremely helpful….I have a question though..when i am making a GET request with /topics, it should return an empty List in POSTMAN right..? but for me its throwing the following error.. (404 not found){ "timestamp": 1492266791646, "status": 404, "error": "Not Found", "message": "No message available", "path": "/topics"} (i have followed the steps as per the video exactly)Can someone please help me to sort out this issue..

Manikanta Varahala Ganapathiraju
Guest
Manikanta Varahala Ganapathiraju
20 days 16 hours ago

Thank you so much varsha..

Varsha Venkatesh
Guest
Varsha Venkatesh
20 days 22 hours ago

Yes, I have solved the problem. Just rename the package, it will work fine.

Aleksander Ojciec
Guest
Aleksander Ojciec
29 days 3 hours ago

Have you solved this problem? I have the same I think, spring can't create table

Varsha Venkatesh
Guest
Varsha Venkatesh
1 month 1 day ago

Rename the package that you copied from course-api project. It will work fine.

Ashutosh Sharma
Guest
Ashutosh Sharma
1 month 10 days ago

I am getting this error while starting applicaion:Exception encountered during context initialization – cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'halMessageConverterSupportedMediaTypeCustomizer': Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: org/springframework/web/servlet/mvc/method/annotation/RequestMappingHandlerAdapter

Manikanta Varahala Ganapathiraju
Guest
Manikanta Varahala Ganapathiraju
1 month 6 days ago

add the following to pom.xml and check<dependency> <groupId>org.apache.derby</groupId> <artifactId>derby</artifactId> <scope>runtime</scope> </dependency>

1 2 3
wpDiscuz