반응형
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
- easy
- xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools)
- ssl이란?
- springboottest
- java
- yum install java
- No tests found for given includes
- java 여러개 버전
- java 1.8 11
- OpenFeign
- error
- statement.executequery() cannot issue statements that do not produce result sets.
- ssl프로토콜확인
- aws
- mac os git error
- java 버전 변경
- java version
- mysql executequery error
- xcrun: error: invalid active developer path
- log error
- parse
- Java 1.8
- AWS CLI
- LeetCode
- JUnit
- tls프로토콜확인
- springboot
- Medium
- 스프링부트테스트
- java 11
Archives
- Today
- Total
쩨이엠 개발 블로그
[ Spring ] 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).
DB가 정의가 되지 않았다는 말인데
원래라면 driver class를 application.properties에 추가해주면 되겠지만 내 경우는 DB가 필요가 없었다
그럴 때 해 줄수 있는 어노테이션
원래의 SpringBootApplication 어노테이션 옆에 exclude = DataSourceAutoConfiguration.class 를 추가해준다
@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)
public class Application {
public static void main(String[] args) {
SpringApplication.run(Application.class, args);
}
}
728x90
반응형
'개발 > Spring' 카테고리의 다른 글
Maven pom to gradle (0) | 2020.07.13 |
---|---|
[ Spring ] spring init 초기화 메소드 @PostConstruct (0) | 2020.07.01 |
[ Spring ] SpringBoot test 순서 / 이름 정하기 (@TestMethodOrder / @DisplayName) (0) | 2020.05.20 |
[ Spring ] Springboot test - mockito (Mapper 접근) (0) | 2020.05.19 |
[ Spring ] Spring boot Test (@RunWith, @ExtendWith) (0) | 2020.05.09 |
Comments