Leave a Reply

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

Notify of
avatar

Liu Hantong
Guest
Liu Hantong
1 month 27 days ago

why there is no test/resources in data project?

Daynewss
Guest
Daynewss
2 months 8 days ago

I use Spring Boot 2.0.2. After copying topic files and trying to run as Java application I get error: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaConfiguration.class]: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: javax/xml/bind/JAXBExceptionat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1706) ~[spring-beans-5.0.6.RELEASE.jar:5.0.6.RELEASE]If I run project as Spring Boot application the server starts, but Postman returns error after post, put or anything else, which is a part of topics: {"timestamp":"2018-06-06T06:02:28.900+0000","status":404,"error":"Not Found","message":"No message available","path":"/topics"}.Any ideas why?

Daynewss
Guest
Daynewss
2 months 8 days ago

SOLVED!!! Added <dependency> <groupId>javax.xml.bind</groupId> <artifactId>jaxb-api</artifactId></dependency>SOURCE: github.com/spring-projects/spring-boot/wiki#testing hit link below ÚSEFUL LINKS" – Running Spring Boot on Java 9 and above

Rodrigo Louzado
Guest
Rodrigo Louzado
3 months 18 days ago

I follow all the video and got an error.Error: Could not find or load main class io.javabrains.CourseApiDataApplicationi've try to create the project by STS and Spring Initializr and got the same error

Muhammed Mufeed
Guest
Muhammed Mufeed
2 months 13 days ago

I faced the same issue. I solved this issue by clearing the .m2 directory(maven repository). The just use the command "mvn clean -U" inside your project folder

Ngọc Dex
Guest
Ngọc Dex
3 months 19 days ago

Use 1.5.10.RELEASE instead of 1.5.12.RELEASE to avoid "The type org.springframework.context.ConfigurableApplicationContext cannot be resolved. It is indirectly referenced from required .class files"

Ravindra Kumar
Guest
Ravindra Kumar
4 months 5 days ago

sir, Whenever I change the version of a parent from 1.4.2.RELEASE to another version then showing error why? please…

shama anjum
Guest
shama anjum
4 months 8 days ago

I am stuck with this error in my TopicRepository. Can someone help. Thanks! Error: The type org.springframework.data.repository.Repository cannot be resolved. It is indirectly referenced from required .class files.

Ankita Sinha
Guest
Ankita Sinha
4 months 17 days ago

After following all the steps, I am getting a whitelabel error page for urls. Please, suggest a solution Kaushik! Thank you!

nilima gawade
Guest
nilima gawade
4 months 23 days ago

Hi Kaushik thanks for all the tutorials very helpful I was looking for spring boot cron scheduler if you have any example can you please share it How to schedule crons in order in one application also how to handle dependency of crons

jesse2006
Guest
jesse2006
5 months 5 days ago

why don't you use Spring Boot 2.0?

dmitryWeirdo
Guest
dmitryWeirdo
5 months 6 days ago

When I run this app under (goddamned) Java 9, I got java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException.Thanks to stackoverflow.com/questions/43574426/how-to-resolve-java-lang-noclassdeffounderror-javax-xml-bind-jaxbexception-in-j , I added JAXB 2.2.11 dependencies and it worked.

1 2 3 5
wpDiscuz