250x250
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- reverse프록시
- index
- mutable
- 조인
- 알고리즘
- Database
- 정규화
- NoSQL
- RDBMS
- 방어적복사
- java
- binarySearch
- transaction
- ERD
- acid
- 이진탐색
- 프록시서버
- forward프록시
- 자료구조
- 데이터베이스
- 불변객체
- 깊은복사
- immutable
- proxy
- 얕은복사
- 인덱스
Archives
- Today
- Total
jacketList
Spring Boot DB 오류(Failed to determine a suitable driver class) 본문
728x90
반응형
***************************
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.datasource.url=jdbc:mysql://localhost:3306/스키마명?useSSL=false&characterEncoding=UTF-8&serverTimezone=UTC
spring.datasource.username=유저아이디
spring.datasource.password=패스워드
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
"스키마명" 자리에는 사용하려는 MySQL 데이터베이스 스키마(schema)의 이름을 넣기
예를 들어, 스키마명을 "myapp" 또는 "ecommerce"와 같이 애플리케이션 또는 프로젝트의 이름에 기반하여 정의
728x90
반응형
'Spring' 카테고리의 다른 글
[Spring Boot]Spring Security란? (0) | 2023.10.19 |
---|---|
org.hibernate.HibernateException: Access to DialectResolutionInfo cannot be null when 'hibernate.dialect' not set 오류 해결 (1) | 2023.10.11 |