일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- ddd
- facade pattern
- jsp
- Template Method Pattern
- web
- 클린코드
- Clean Code
- 스트림
- head first
- 자바
- Java 8 in action
- 자바의 신
- spring boot
- domain
- Was
- 디자인 패턴
- SERVLET
- 패스트캠퍼스
- Java8 in action
- CQRS
- Java
- 자바8
- Java in action
- spring
- Stream
- Design Pattern
- spring Batch
- Java8
- AWS101
- 자바8인액션
Archives
- Today
- Total
주난v 개발 성장기
[SpringBoot] DB 정보없이 서버 띄우기 본문
MongoDB, Redis만을 사용하게 되면서, RDB에 붙을 이유가 사라졌다.
그래서 jdbc 설정을 지웠더니...아래와 같은 에러가 발생..
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
application.yml에 DB정보가 필수이다.
메인클래스에 붙은 @SpringBootApplication > @EnableAutoConfiguration로 인해서 기본 설정이 잡혀 있기 때문이다.
그래서, 일단은 빈값으로 넣었더니..그래도 동일 문제가 발생하였고,
아래와 같이 해결~~
spring:
autoconfigure:
exclude:
- org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration
- org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration
'개발 성장기 > Spring Framework' 카테고리의 다른 글
Spring Batch DuplicateKeyException 발생 (1) | 2020.06.09 |
---|