Leave a Reply

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

Notify of
avatar

Manish Doomra
Guest
Manish Doomra
3 days 20 hours ago

I noticed the package issue when I was using Spring Boot 1.2.5.Release, when i changed it to 1.4.2.Release, i did not faced that issue.

neeraj kumar
Guest
neeraj kumar
19 days 8 hours ago

I created a simple spring boot starter project with web, jpa and apache derby on Spring boot 1.5.2,1.5.3 and tried on 2.0.0 also but I am getting error org.springframework.context.ApplicationContextException: Unable to start embedded container; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'tomcatEmbeddedServletContainerFactory' defined in class path resource [org/springframework/boot/autoconfigure/web/EmbeddedServletContainerAutoConfiguration$EmbeddedTomcat.class]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'serverProperties' defined in class path resource [org/springframework/boot/autoconfigure/web/ServerPropertiesAutoConfiguration.class]: Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: org/hibernate/HibernateException

Abhinay Kunchhal
Guest
Abhinay Kunchhal
1 month 2 days ago
can some please help me to create derby database as I am getting below error HHH000412: Hibernate Core {5.0.11.Final}2017-04-26 07:03:10.823 INFO 4904 — [ main] org.hibernate.cfg.Environment : HHH000206: hibernate.properties not found2017-04-26 07:03:10.825 INFO 4904 — [ main] org.hibernate.cfg.Environment : HHH000021: Bytecode provider name : javassist2017-04-26 07:03:11.048 INFO 4904 — [ main] o.hibernate.annotations.common.Version : HCANN000001: Hibernate Commons Annotations {5.0.1.Final}2017-04-26 07:03:11.251 INFO 4904 — [ main] org.hibernate.dialect.Dialect : HHH000400: Using dialect: org.hibernate.dialect.DerbyTenSevenDialect2017-04-26 07:03:12.027 INFO 4904 — [ main] org.hibernate.tool.hbm2ddl.SchemaExport : HHH000227: Running hbm2ddl schema export2017-04-26 07:03:12.030 WARN 4904 — [ main] o.h.engine.jdbc.spi.SqlExceptionHelper : SQL Warning Code: 10000, SQLState: 01J012017-04-26 07:03:12.030 WARN 4904… Read more »
bhanuchirutha
Guest
bhanuchirutha
1 month 5 days ago

Hi Want to create , different Projects for Service , Repositories , and controllerI understand for controller if we select Spring Web its enough and for Repositories I select JPA , what is required for service? only web dependency is sufficient?

Norbert Kulacin
Guest
Norbert Kulacin
1 month 6 days ago

amazing tutorial, I hope you will have more tutorials about Spring Boot in near future! Well done!

Chirag Lakhani
Guest
Chirag Lakhani
2 months 20 days 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.

N T
Guest
N T
1 month 22 days ago

add the following dependency to your pom.xml <dependency> <groupId>com.h2database</groupId> <artifactId>h2</artifactId> </dependency>

bugg bug
Guest
bugg bug
3 months 8 days ago

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

Michael Hopkins
Guest
Michael Hopkins
3 months 16 days ago

You have fast internet and a fast machine :p

Emre Verim
Guest
Emre Verim
1 month 5 days ago

apple rulez

Bhargava N.B
Guest
Bhargava N.B
4 months 2 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)

Patrik Vidović
Guest
Patrik Vidović
1 month 1 day ago

I have no idea why, but had the same problem.

Rajesh VP
Guest
Rajesh VP
1 month 19 days ago

I noticed the same too

Bhargava N.B
Guest
Bhargava N.B
4 months 2 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