Error starting ApplicationContext. To display the auto-configuration report re-run your application with 'debug' enabled.
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: javax/xml/bind/JAXBException
Caused by: java.lang.ClassNotFoundException: javax.xml.bind.JAXBException
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581) ~[na:na]
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178) ~[na:na]
Caused by: java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException
중요한 에러 부분 요약
1) 첫 번째 시도
참고 : https://velog.io/@2yeseul/Spring-Boot-JPA-MySQL-%EC%97%B0%EB%8F%99
spring.jpa.database=mysql
application.properties에 추가했지만 실패..
2) 두 번째 시도(해결!!!!)
참고: https://madplay.github.io/post/java9-jaxb-exception-in-springboot
compile group: 'javax.xml.bind', name: 'jaxb-api', version: '2.3.0'
build.gradle의 dependencies에 추가함
반응형
'Framework > Spring Boot' 카테고리의 다른 글
[Error] "Request method 'GET' not supported" (0) | 2021.07.06 |
---|---|
[Error] Request method 'POST' not supported (0) | 2021.06.26 |
[Error] javax.net.ssl.SSLException (0) | 2021.06.04 |
[error] Thymeleaf Exception processing template (0) | 2021.06.03 |
[Error] java: You aren't using a compiler supported by lombok, so lombok will not work and has been disabled. (0) | 2021.05.14 |