From 6276eb43bb28f8db3ba199e273d385b5107a14ce Mon Sep 17 00:00:00 2001 From: Toshiaki Maki Date: Thu, 5 Dec 2024 17:11:32 +0900 Subject: [PATCH] Enable CDS --- pom.xml | 28 +++++++++++++++++++++++ src/main/resources/application.properties | 13 +++++++++++ 2 files changed, 41 insertions(+) diff --git a/pom.xml b/pom.xml index 9299082..08d12f7 100644 --- a/pom.xml +++ b/pom.xml @@ -209,6 +209,34 @@ org.springframework.boot spring-boot-maven-plugin + + + + build-info + + + + + + true + + + ${project.parent.version} + + ${spring-framework.version} + + ${spring-security.version} + + + + + https://github.com/${env.GITHUB_REPOSITORY} + ${env.GITHUB_SHA} + true + -Dspring.flyway.enabled=false -Dspring.jpa.properties.hibernate.boot.allow_jdbc_metadata_access=false -Dspring.jpa.hibernate.ddl-auto=none -Dspring.autoconfigure.exclude=org.springframework.modulith.events.jdbc.JdbcEventPublicationAutoConfiguration + + + io.spring.javaformat diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index 9559eab..dcea6f0 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -13,7 +13,12 @@ management.endpoints.web.exposure.include=info,health,prometheus,sbom management.info.env.enabled=true management.info.java.enabled=true management.info.os.enabled=true +management.metrics.distribution.percentiles-histogram.http.client.requests=true +management.metrics.distribution.percentiles-histogram.http.server.requests=true management.observations.enable.spring.security=false +management.opentelemetry.resource-attributes.git.commit.id.abbrev=${git.commit.id.abbrev:N/A} +management.opentelemetry.resource-attributes.spring.boot.version=${build.spring.boot.version:N/A} +management.opentelemetry.resource-attributes.spring.framework.version=${build.spring.framework.version:N/A} management.tracing.sampling.probability=1.0 management.zipkin.tracing.endpoint=http://localhost:9411/v1/traces server.error.include-message=always @@ -21,8 +26,16 @@ server.http2.enabled=true server.port=8085 server.servlet.session.timeout=10m spring.application.name=comment-api +spring.config.import=optional:classpath:git.properties,optional:classpath:META-INF/build-info.properties +spring.datasource.driver-class-name=org.postgresql.Driver +spring.datasource.hikari.maximum-pool-size=16 +spring.datasource.hikari.minimum-idle=4 +spring.datasource.password=comment +spring.datasource.url=jdbc:postgresql://localhost:5432/comment +spring.datasource.username=comment spring.docker.compose.enabled=true spring.docker.compose.lifecycle-management=start_only +spring.jpa.database-platform=org.hibernate.dialect.PostgreSQLDialect spring.jpa.hibernate.ddl-auto=validate spring.jpa.open-in-view=false spring.security.oauth2.client.provider.google.issuer-uri=https://accounts.google.com