Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/11: Spring boot와 MySQL 연동 #12

Merged
merged 3 commits into from
Jan 14, 2025
Merged

Feature/11: Spring boot와 MySQL 연동 #12

merged 3 commits into from
Jan 14, 2025

Conversation

KanuBang
Copy link
Collaborator

@KanuBang KanuBang commented Jan 7, 2025

로컬에서 SpringBoot를 실행시키고 MySQL은 컨테이너를 띄워 연동시켰습니다.

Copy link

sonarqubecloud bot commented Jan 7, 2025

## ADD
mysql_data
compose.yml
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

compose.yml은 다른 사람과 공유해서 개발 환경을 쉽게 셋업할 수 있게해야하지 않을까요? :-)

runtimeOnly 'com.mysql:mysql-connector-j'
developmentOnly 'org.springframework.boot:spring-boot-devtools'

testImplementation 'com.h2database:h2' // H2를 테스트용 DB로 사용 시
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

이왕 mysql을 도입했으니, 테스트에서도 mysql을 사용하게 하면 좋을 것 같아요.

Copy link
Collaborator

@f-lab-lyan f-lab-lyan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

docker-compose.yml만 추가하면 좋을 것 같네요. :-) 고생하셨습니다.

@KanuBang KanuBang merged commit 4fd9937 into main Jan 14, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants