IT 언어/IntelliJ
[IntelliJ] MySQL 연동 (Failed to configure a DataSource: 'url' attribute is not specified ...)
비둘기멋지게발차기
2024. 7. 19. 23:01
처음 IntelliJ에 프로젝트를 생성해서 실행을 하면 위와 같이 에러 메세지가 나온다
Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured.
에서 볼 수 있듯, DB 연결이 되지 않아서 발생하는 에러다
목차
- MySQL 연동
- MySQL Workbench에 데이터베이스 생성
- IntelliJ의 application.yml 설정
- Hello World 띄우기
- controller/HelloController
- resources/templates/hello.html
1. MySQL 연동
- MySQL Workbench에 데이터베이스 생성
- IntelliJ의 application.yml 설정
- 정상 작동 확인
2. Hello World 띄우기
- controller/HelloController
- resources/templates/hello.html
- 정상 작동 확인