*************************** 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 |
DB설정하라는 에러메세지이다.
/src/main/resources/application.properties 파일
#MySQL DB설정 spring.datasource.url=jdbc:mysql://localhost:3306/uglyMarket?useSSL=false&characterEncoding=UTF-8&serverTimezone=UTC spring.datasource.username=root spring.datasource.password=1234 |
DB설정해주고 서버 실행하기
http://localhost:8080/
브라우저를 열면 잘 뜬다.
반응형
LIST
'Spring boot | 쇼핑몰 만들기 | 어글리 마켓 > 홈페이지 만들기 | 고객,관리자' 카테고리의 다른 글
페이지 수정하기 (0) | 2022.04.30 |
---|---|
에러나서 문자 그대로 불러올때 @ModelAttribute 와 Model 객체 차이 (0) | 2022.04.30 |
페이지 추가 (0) | 2022.04.30 |
페이지 만들기 (0) | 2022.04.30 |
부트스트랩 (0) | 2022.04.30 |