[Spring Error] Access to DialectResolutionInfo cannot be null when 'hibernate.dialect' not set

2021. 2. 13. 23:44·Error code 모음/5. JAVA, Spring errors
반응형

 

1. 에러 원인


에러의 원인은 application.properties 프로퍼티 파일에 연결하고자 하는 데이터 소스정보와 jpa 데이터 소스 정보가 기입되어 있지 않을때 발생한다

 

 

 

 

 

 

2. 해결 방법


spring.datasource.url=jdbc:postgresql://localhost:5432/postgresql
spring.datasource.username=postgresql
spring.datasource.password=postgrespassword

spring.jpa.database-platform=org.hibernate.dialect.PostgreSQLDialect
spring.jpa.show-sql=false
spring.jpa.hibernate.ddl-auto=create

위와 같이 application.properties 프로퍼티 파일에 위 요소를 입력해주면 되는 것 같다.

참고로 properties 는 확장자 앞에 이름이 각 프로젝트마다 다를 수 있으니, 

해당부분은 참고할 것

 

 

 

 

 

3. 참고 링크


stackoverflow.com/questions/26548505/org-hibernate-hibernateexception-access-to-dialectresolutioninfo-cannot-be-null

 

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

I am trying run a spring-boot application which uses hibernate via spring-jpa, but i am getting this error: Caused by: org.hibernate.HibernateException: Access to DialectResolutionInfo cannot be n...

stackoverflow.com

 

반응형
저작자표시 비영리 변경금지 (새창열림)

'Error code 모음 > 5. JAVA, Spring errors' 카테고리의 다른 글

[Java error] Jersey, An I/O error has occurred while writing a response message  (0) 2022.03.17
[Spring Error] The DispatcherServlet configuration needs to include a HandlerAdapter that supports this handler  (0) 2021.03.07
[Spring Error] The server time zone value is unrecognized or represents more than one time zone 에러  (0) 2021.02.01
[Spring Error] MySQLNonTransientConnectionException: Client does not support authentication protocol requested by server; consider upgrading MySQL client [duplicate]  (0) 2021.02.01
[Spring Error] nested exception is java.lang.NoClassDefFoundError: org/springframework/jdbc/datasource/TransactionAwareDataSourceProxy  (0) 2021.02.01
'Error code 모음/5. JAVA, Spring errors' 카테고리의 다른 글
  • [Java error] Jersey, An I/O error has occurred while writing a response message
  • [Spring Error] The DispatcherServlet configuration needs to include a HandlerAdapter that supports this handler
  • [Spring Error] The server time zone value is unrecognized or represents more than one time zone 에러
  • [Spring Error] MySQLNonTransientConnectionException: Client does not support authentication protocol requested by server; consider upgrading MySQL client [duplicate]
쟈누
쟈누
Ad astra per aspera
    반응형
  • 쟈누
    쟈누의 기록공간
    쟈누
  • 전체
    오늘
    어제
    • 분류 전체보기 (444)
      • AWS (31)
        • Glue (4)
        • S3 (1)
      • 클라우드 (0)
      • Data Engineering (37)
        • GitHub (10)
        • NiFi (11)
        • Spark (10)
        • Snowflake (0)
        • 머신러닝, AI (6)
      • 언어 (118)
        • 데이터 베이스 (42)
        • JAVA (9)
        • Python (34)
        • Java Script (15)
        • Linux (18)
      • 프로젝트, 인강 그리고 책 (30)
        • Spotify Project (7)
        • RASA chatbot Project (9)
        • Naver shopping Project (6)
        • 빅데이터를 지탱하는 기술 (8)
      • OLD (56)
        • IT 용어 사전 (13)
        • Front End (12)
        • Back End (31)
      • Error code 모음 (165)
        • 1. SQL errors (17)
        • 2. Hadoop errors (20)
        • 3. Linux Errors (14)
        • 4. Python errors (33)
        • 5. JAVA, Spring errors (41)
        • 6. Jav Script errors (10)
        • 7. Dev Tools errors (9)
        • 8. Git errors (8)
        • 9. Jenkins Errors (4)
        • 10. airflow Errors (2)
        • 11. Aws errors (7)
      • 개인 (1)
        • 책 (1)
  • 블로그 메뉴

    • 홈
    • 태그
    • 방명록
    • 블로그 관리
    • 글쓰기
  • 링크

  • 공지사항

    • 간단한 블로그 소개
  • 인기 글

  • 태그

    Python
    linux
    설치
    Spring
    NiFi
    MySQL
    에러
    java
    node
    AWS
    리눅스
    SQL
    API
    Git
    error
    python error
    json
    install
    파이썬
    자바
  • 최근 댓글

  • 최근 글

  • hELLO· Designed By정상우.v4.10.3
쟈누
[Spring Error] Access to DialectResolutionInfo cannot be null when 'hibernate.dialect' not set
상단으로

티스토리툴바