@@ -62,7 +62,7 @@ Dockerfile - Container image definition
6262- ** All tests** : ` ./mvnw test `
6363- ** With coverage** : ` ./mvnw clean test jacoco:report ` (view: ` open target/site/jacoco/index.html ` )
6464- ** Single test class** : ` ./mvnw test -Dtest=PlayersControllerTests `
65- - ** Single test method** : ` ./mvnw test -Dtest=PlayersControllerTests#getAll_playersExist_returnsOkWithAllPlayers `
65+ - ** Single test method** : ` ./mvnw test -Dtest=PlayersControllerTests#givenPlayersExist_whenGetAll_thenReturnsOkWithAllPlayers `
6666- ** Integration tests require** : In-memory SQLite (automatic, no docker needed)
6767- ** Full CI pipeline locally** : ` ./mvnw clean install ` (compile + test + package + jacoco)
6868
@@ -72,9 +72,9 @@ Dockerfile - Container image definition
72722 . ** Packaged JAR** : ` ./mvnw clean package && java -jar target/java.samples.spring.boot-*.jar `
73733 . ** Docker** : ` docker compose up ` (or ` docker compose up -d ` for background)
74744 . ** Application URLs** :
75- - API: ` http://localhost:8080 /players `
76- - Swagger: ` http://localhost:8080 /swagger-ui .html `
77- - Health: ` http://localhost:8080 /actuator/health `
75+ - API: ` http://localhost:9000 /players `
76+ - Swagger: ` http://localhost:9000 /swagger/index .html `
77+ - Health: ` http://localhost:9001 /actuator/health `
7878
7979### Adding a search/query endpoint
8080
@@ -97,10 +97,10 @@ Dockerfile - Container image definition
9797
9898### Troubleshooting common issues
9999
100- ** Port already in use (8080 )** :
100+ ** Port already in use (9000 )** :
101101
102102``` bash
103- lsof -ti:8080 | xargs kill -9
103+ lsof -ti:9000 | xargs kill -9
104104```
105105
106106** Maven dependency issues** :
@@ -198,8 +198,8 @@ Before committing code, ensure these pass:
198198
1991995 . ** Manual smoke test** (optional but recommended):
200200 - Start app: ` ./mvnw spring-boot:run `
201- - Test endpoint in Swagger UI: ` http://localhost:8080 /swagger-ui .html `
202- - Verify health endpoint: ` http://localhost:8080 /actuator/health `
201+ - Test endpoint in Swagger UI: ` http://localhost:9000 /swagger/index .html `
202+ - Verify health endpoint: ` http://localhost:9001 /actuator/health `
203203
204204## Cross-repo Context
205205
0 commit comments