[Error] jdbcUrl is required with driverClassName.

2020. 2. 24. 15:20·이슈 해결

 

 

jdbcUrl is required with driverClassName.

이라는 에러가 나왔다.

 

Spring boot에서 MySQL을 연동하는 과정에서 나온 에러이다.

 

 

해결 :

 

application.properties에 설정해둔 원래 코드는 이러 했다. 

 

spring.datasource.driver-class-name=com.mysql.jdbc.Driver
spring.datasource.url=jdbc:mysql://localhost:3306/(스키마이름)?serverTimezone=UTC&characterEncoding=UTF-8
spring.datasource.username=root
spring.datasource.password=1234

 

여기서 두번째 줄의 spring.datasource.url의 문제였다

 

 

수정 코드는

spring.datasource.driver-class-name=com.mysql.jdbc.Driver
spring.datasource.jdbc-url=jdbc:mysql://localhost:3306/(스미카이름)?serverTimezone=UTC&characterEncoding=UTF-8
spring.datasource.username=root
spring.datasource.password=1234

 

url을 jdbc-url로 수정해주었다. 해결!

'이슈 해결' 카테고리의 다른 글

Spring boot에서 'request header is too large' 해결.  (0) 2020.12.12
Access to DialectResolutionInfo cannot be null when 'hibernate.dialect' not set  (5) 2020.11.28
[Error] ajax 사용 중 'JSON parse error: ~'  (2) 2020.02.22
'이슈 해결' 카테고리의 다른 글
  • Spring boot에서 'request header is too large' 해결.
  • Access to DialectResolutionInfo cannot be null when 'hibernate.dialect' not set
  • [Error] ajax 사용 중 'JSON parse error: ~'
나는 유찌
나는 유찌
쩌리쨩
  • 나는 유찌
    유찌 개발 일기
    나는 유찌
  • 전체
    오늘
    어제
    • 분류 전체보기
      • 사이드 프로젝트
        • 게시판
        • 블로그(Spring boot + React.js ..
      • 데이터베이스
        • SQLD
      • 이슈 해결
      • Front
        • Javascript
        • Vue.js
        • HTML+CSS
      • Backend
        • Spring
        • ORM
        • JAVA
      • 공부
        • HTTP
        • OOP
        • 이것저것
        • 코딩테스트 | 알고리즘
      • Computer Science
        • Computer architecture
        • 데이터베이스
        • 운영체제
      • 일상
        • 독서
  • 블로그 메뉴

    • 홈
    • 태그
    • 방명록
  • 링크

  • 공지사항

  • 인기 글

  • 태그

    Kotlin AntPathMatcher
    Spring Boot
    LeetCode
    mysql 격리수준
    Access Token Refresh Token
    AntPathMatcher
    권한 scope 처리
    Spring Security AccessDecisionManager
    Kotlin AccessDecisionManager
    독서
    한국소설
    spring
    웹 개발
    JWT이란?
    Access token 재발급
    access token
    AccessDecisionVoter
    DIRTY READ
    jwt 로그인 구현
    phantom read
    spring 격리수준
    role scope
    refresh token
    pessimisticlock
    jwt
    Spring boot에서 JWT 구현
    추리소설
    히가시노 게이고
    redis 분산락
    mssql
  • 최근 댓글

  • 최근 글

  • hELLO· Designed By정상우.v4.10.3
나는 유찌
[Error] jdbcUrl is required with driverClassName.
상단으로

티스토리툴바