개발일지
Spring Data JPA 설정 중 오류메시지 [ Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured.]
스마일c
2019. 7. 31. 13:29
728x90
아래와 같이 오류메시지 발생함..
무슨 문제냐면.... springboot jdbc 미 설정시 발생 에러라고 함
*************************** APPLICATION FAILED TO START *************************** Description: Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured. Reason: Failed to determine a suitable driver class Action: Consider the following: If you want an embedded database (H2, HSQL or Derby), please put it on the classpath. If you have database settings to be loaded from a particular profile you may need to activate it (no profiles are currently active). |
해결방법은 아래와 같이 application.properties 파일에 아래 속성을추가 해야함.
spring.jpa.properties.hibernate.temp.use_jdbc_metadata_defaults=false |
application.properties 파일 위치는 src/main/resources

728x90