본문 바로가기

Web Dev

java spring gradle server error

반응형

https://mchch.tistory.com/164

 

Driver org.mariadb.jdbc.Driver claims to not accept jdbcUrl 오류

Driver org.mariadb.jdbc.Driver claims to not accept jdbcUrl 에러 자꾸 뜸 근데 뒤에 url 이름이 내가 설정한 maria db url이 아님 내가 사용하는 profile : real application-real-db-properties에 database..

mchch.tistory.com

https://dev-yujji.tistory.com/49

 

Access to DialectResolutionInfo cannot be null when 'hibernate.dialect' not set

Spring boot에 JPA 연동하는데 'Access to DialectResolutionInfo cannot be null when 'hibernate.dialect' not set' 라는 에러가 나왔다. 무엇이 잘못인가 하니 application-properties에 어떤 DB를 사용하는지..

dev-yujji.tistory.com

application.properties

server.port = 8090
spring.jpa.database = mysql
spring.datasource.driver-class-name = org.mariadb.jdbc.Driver
spring.datasource.username = root
spring.datasource.password = 1111
spring.datasource.url = jdbc:mariadb://localhost:3306/board

spring.jpa.hibernate.ddl-auto=create-drop

dependencies

dependencies {
   implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
   implementation 'org.springframework.boot:spring-boot-starter-thymeleaf'
   implementation 'org.springframework.boot:spring-boot-starter-web'
   compileOnly 'org.projectlombok:lombok'
   runtimeOnly 'org.mariadb.jdbc:mariadb-java-client'
   annotationProcessor 'org.projectlombok:lombok'
   testImplementation 'org.springframework.boot:spring-boot-starter-test'
   implementation group: 'org.javassist', name: 'javassist', version: '3.15.0-GA'

}

 

그냥 계속 구글링해서 추가추가 되든 안되든 막하니까 되더라 

아 진짜 자바스프링 ..... 

반응형