Leave a Reply

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

Notify of
avatar

Vivek Naskar
Guest
Vivek Naskar
1 day 22 hours ago

Please help me to resolve this:

Description:

Field topicRepository in io.springbootquickstart.topic.TopicService required a bean of type 'io.springbootquickstart.topic.TopicRepository' that could not be found.

Action:

Consider defining a bean of type 'io.springbootquickstart.topic.TopicRepository' in your configuration.

Vivek Naskar
Guest
Vivek Naskar
1 day 21 hours ago

Got it:

Used the following annotations:

@SpringBootApplication
@ComponentScan("com.stsproject")
@EnableJpaRepositories("io.springbootquickstart.topic")
@EntityScan(basePackages = "io.springbootquickstart.topic")

George Tanev
Guest
George Tanev
4 days 22 hours ago

Can you use the CrudRepository interface with Hibernate? Would you need a SessionFactory if you have a CrudRepository implementation?Thank you for these great tutorials.

Fladio Armandika
Guest
Fladio Armandika
1 month 1 day ago

help me! i got this error Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory at org.springframework.boot.SpringApplication.<clinit>(SpringApplication.java:179) at com.example.demo.CourseApiData2Application.main(CourseApiDataApplication.java:10)

ch0c89
Guest
ch0c89
1 month 11 days ago

Thanks for the amazing tutorials. BTW, You can ideally override findAll method with return type as List<Topic> in TopicRepository. Just add the following code and it will work like charm.@Override public List<Topic> findAll();

erluxman
Guest
erluxman
1 month 14 days ago

This is so amazing that I could not even believe that I could start writing spring boot apps this easily. But one problem I am facing is that whenever I stop and restart the application all the data I had stored using post request into my embedded database just disappears and I have to post data again. And I kinda recall that you said you will do some tutorials about connecting the external database ( non volatile /persistence database). I would love it so much if you could do some videos on that .. Thanks in advance sir 🙂

ThePhysics1234
Guest
ThePhysics1234
1 month 16 days ago

i didn't get the part where you instantiate an interface and autowire it?

Stephen Kuehl
Guest
Stephen Kuehl
1 month 27 days ago

arg.. You never showed the controller.

Ankur Rampuria
Guest
Ankur Rampuria
2 months 4 days 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 »
Marinakulichok
Guest
Marinakulichok
1 month 27 days ago

I do my app in eclipse and without saving all my changes I have got the same error as your((((Just always press Save button in eclipse ide!

Amit Tanwani
Guest
Amit Tanwani
2 months 9 days 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
2 months 11 days 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.

1 2 3 4
wpDiscuz