별도 설정 없이 바로 실행하면 H2 인메모리 DB를 사용합니다.
./gradlew bootRun- Docker로 MySQL 실행
docker compose up -d- develop 프로파일로 앱 실행
./gradlew bootRun --args='--spring.profiles.active=develop'IntelliJ에서 실행할 경우 Run Configuration에서:
- VM options:
-Dspring.profiles.active=develop - 또는 Program arguments:
--spring.profiles.active=develop
| 항목 | 값 |
|---|---|
| Host | localhost:3306 |
| Database | dots |
| Username | dots |
| Password | dots |
앱 실행 후 Swagger UI에서 확인할 수 있습니다.
http://localhost:8080/swagger-ui/index.html
./gradlew test