Leave a Reply

5 Comments on "Spring Boot Quick Start 27 – Adding Spring Data JPA"

Notify of
avatar

Chirag Lakhani
Guest
Chirag Lakhani
22 days 13 hours ago

After downloading and adding Topic package from earlier project when I am running it, i am getting error like "Error creating bean with name 'entityManagerFactory' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaAutoConfiguration.class]: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: javassist/bytecode/ClassFile". I have tried many things but I think in video there is nothing done explicitly. Please help me.

bugg bug
Guest
bugg bug
1 month 10 days ago

I dont see any topic about how to connect to external databases. Am I missing some thing.

Michael Hopkins
Guest
Michael Hopkins
1 month 18 days ago

You have fast internet and a fast machine :p

Bhargava N.B
Guest
Bhargava N.B
2 months 4 days ago

Thanks a lot Koushik for all the videos, they are really helpful, the best teacher :)There is something that I noticed. If the RestController class is not inside the same package (or subpackage) as the SpringBootApplication, then the controller is not picked by the MVC and my request to for eg. '/topics' returns me a 'not found'. I guess all RestControllers in the classpath are not picked up by the SpringBootApplication. (A complete classpath scan might not be happening)

Bhargava N.B
Guest
Bhargava N.B
2 months 4 days ago

Looking up the documentation specifies that I can specify the basepackages for the componentscan and things work fine when I do so. I realize it was the default same package + child packages that is being scanned when no basepackages are specified!

wpDiscuz