diff --git a/.github/workflows/build-and-publish-develop.yml b/.github/workflows/build-and-publish-develop.yml index 8f4c565..6bcfeb5 100644 --- a/.github/workflows/build-and-publish-develop.yml +++ b/.github/workflows/build-and-publish-develop.yml @@ -26,7 +26,7 @@ jobs: - uses: actions/checkout@v4 with: fetch-depth: 0 - - uses: actions/setup-java@v4.2.2 + - uses: actions/setup-java@v4.3.0 if: ${{ hashFiles('**/pom.xml') }} with: java-version: 17 @@ -77,7 +77,7 @@ jobs: - uses: actions/checkout@v4 with: fetch-depth: 0 - - uses: actions/setup-java@v4.2.2 + - uses: actions/setup-java@v4.3.0 if: ${{ hashFiles('**/pom.xml') }} with: java-version: 17 @@ -162,7 +162,7 @@ jobs: - uses: actions/checkout@v4 with: fetch-depth: 0 - - uses: actions/setup-java@v4.2.2 + - uses: actions/setup-java@v4.3.0 if: ${{ hashFiles('**/pom.xml') }} with: java-version: 17 diff --git a/.github/workflows/build-and-publish-release.yml b/.github/workflows/build-and-publish-release.yml index 998567b..c3a73d6 100644 --- a/.github/workflows/build-and-publish-release.yml +++ b/.github/workflows/build-and-publish-release.yml @@ -26,7 +26,7 @@ jobs: - uses: actions/checkout@v4 with: fetch-depth: 0 - - uses: actions/setup-java@v4.2.2 + - uses: actions/setup-java@v4.3.0 if: ${{ hashFiles('**/pom.xml') }} with: java-version: 17 @@ -95,7 +95,7 @@ jobs: with: ref: main fetch-depth: 1 - - uses: actions/setup-java@v4.2.2 + - uses: actions/setup-java@v4.3.0 if: ${{ hashFiles('**/pom.xml') }} with: java-version: 17 @@ -181,7 +181,7 @@ jobs: with: ref: main fetch-depth: 1 - - uses: actions/setup-java@v4.2.2 + - uses: actions/setup-java@v4.3.0 if: ${{ hashFiles('**/pom.xml') }} with: java-version: 17 diff --git a/pom.xml b/pom.xml index 9c7157e..345c65d 100644 --- a/pom.xml +++ b/pom.xml @@ -7,11 +7,11 @@ sydney.cheng ec-super-pom - 1.0.4 + 1.0.5 ec-config-server - 1.0.7 + 1.0.8-SNAPSHOT @@ -53,6 +53,11 @@ + + sydney.cheng + ec-microservice-commons-swagger + 1.0.1-SNAPSHOT + org.springframework.boot spring-boot-starter-actuator diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index 7ed3885..0d42816 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -37,6 +37,12 @@ spring: name: ${application.name} profiles: active: native + security: + basic: + enabled: true + user: + name: ${CONFIG_SERVER_USERNAME:configuser} + password: ${CONFIG_SERVER_PASSWORD:configPass$1234} cloud: config: server: @@ -47,4 +53,12 @@ spring: eureka: client: - enabled: false \ No newline at end of file + enabled: false + +springdoc: + swagger-ui: + path: /swagger-ui.html + displayRequestDuration: true + api-docs: + path: /api-docs + show-actuator: true \ No newline at end of file