diff --git a/.gitattributes b/.gitattributes index 2e1afeb8d..38e1339fa 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,2 +1,3 @@ *.xml text eol=lf -*.yaml text eol=lf \ No newline at end of file +*.yaml text eol=lf +*.properties text eol=lf \ No newline at end of file diff --git a/boot-grafana-lgtm/src/main/resources/application.properties b/boot-grafana-lgtm/src/main/resources/application.properties index 419f5c5a0..f71dc7c90 100644 --- a/boot-grafana-lgtm/src/main/resources/application.properties +++ b/boot-grafana-lgtm/src/main/resources/application.properties @@ -1,8 +1,8 @@ spring.application.name=boot-grafana-lgtm -spring.threads.virtual.enabled=true - -management.endpoints.web.exposure.include=env,health,info,logfile,loggers,metrics,prometheus -management.tracing.sampling.probability=1.0 -management.prometheus.metrics.export.step=1s -management.metrics.distribution.percentiles-histogram.all=true +spring.threads.virtual.enabled=true + +management.endpoints.web.exposure.include=env,health,info,logfile,loggers,metrics,prometheus +management.tracing.sampling.probability=1.0 +management.prometheus.metrics.export.step=1s +management.metrics.distribution.percentiles-histogram.all=true management.metrics.distribution.percentiles-histogram.http.server.requests=true \ No newline at end of file diff --git a/boot-rabbitmq-thymeleaf/src/main/resources/application.properties b/boot-rabbitmq-thymeleaf/src/main/resources/application.properties index e540605d1..300a69d95 100644 --- a/boot-rabbitmq-thymeleaf/src/main/resources/application.properties +++ b/boot-rabbitmq-thymeleaf/src/main/resources/application.properties @@ -1,54 +1,54 @@ -spring.application.name=boot-rabbitmq-thymeleaf - -logging.level.com.poc.boot.rabbitmq=debug - -# Additional RabbitMQ properties -spring.rabbitmq.publisher-confirmType=CORRELATED -spring.rabbitmq.publisher-returns=true - -spring.rabbitmq.listener.simple.concurrency=4 -spring.rabbitmq.listener.simple.max-concurrency=8 -spring.rabbitmq.listener.simple.retry.enabled=true -spring.rabbitmq.listener.simple.retry.initial-interval=1s -spring.rabbitmq.listener.simple.retry.max-attempts=3 -spring.rabbitmq.listener.simple.retry.multiplier=1.5 -spring.rabbitmq.listener.simple.retry.max-interval=2s -spring.rabbitmq.listener.simple.acknowledge-mode=auto -spring.rabbitmq.listener.simple.observation-enabled=true - -spring.rabbitmq.template.retry.enabled=true -spring.rabbitmq.template.retry.multiplier=1.5 -spring.rabbitmq.template.mandatory=true -spring.rabbitmq.template.observation-enabled=true - -spring.mvc.problemdetails.enabled=true -spring.threads.virtual.enabled=true - -spring.testcontainers.beans.startup=parallel - -################ Actuator ##################### -management.endpoints.web.exposure.include=health,info,metrics,prometheus -management.endpoint.health.show-details=always -management.metrics.tags.application=${spring.application.name} -management.metrics.enable.spring.rabbitmq=true - -################ Database ##################### -spring.jpa.show-sql=false -spring.jpa.open-in-view=false -spring.data.jpa.repositories.bootstrap-mode=deferred -spring.datasource.hikari.auto-commit=false -spring.datasource.hikari.pool-name=HikariPool-${spring.application.name} -spring.datasource.hikari.data-source-properties.ApplicationName=${spring.application.name} -spring.jpa.hibernate.ddl-auto=validate -#spring.jpa.properties.hibernate.format_sql=true -spring.jpa.properties.hibernate.jdbc.time_zone=UTC -spring.jpa.properties.hibernate.generate_statistics=false -spring.jpa.properties.hibernate.jdbc.batch_size=25 -spring.jpa.properties.hibernate.order_inserts=true -spring.jpa.properties.hibernate.order_updates=true -spring.jpa.properties.hibernate.query.fail_on_pagination_over_collection_fetch=true -spring.jpa.properties.hibernate.query.in_clause_parameter_padding=true -spring.jpa.properties.hibernate.query.plan_cache_max_size=4096 -spring.jpa.properties.hibernate.connection.provider_disables_autocommit=true -spring.jpa.properties.hibernate.jdbc.lob.non_contextual_creation=true - +spring.application.name=boot-rabbitmq-thymeleaf + +logging.level.com.poc.boot.rabbitmq=debug + +# Additional RabbitMQ properties +spring.rabbitmq.publisher-confirmType=CORRELATED +spring.rabbitmq.publisher-returns=true + +spring.rabbitmq.listener.simple.concurrency=4 +spring.rabbitmq.listener.simple.max-concurrency=8 +spring.rabbitmq.listener.simple.retry.enabled=true +spring.rabbitmq.listener.simple.retry.initial-interval=1s +spring.rabbitmq.listener.simple.retry.max-attempts=3 +spring.rabbitmq.listener.simple.retry.multiplier=1.5 +spring.rabbitmq.listener.simple.retry.max-interval=2s +spring.rabbitmq.listener.simple.acknowledge-mode=auto +spring.rabbitmq.listener.simple.observation-enabled=true + +spring.rabbitmq.template.retry.enabled=true +spring.rabbitmq.template.retry.multiplier=1.5 +spring.rabbitmq.template.mandatory=true +spring.rabbitmq.template.observation-enabled=true + +spring.mvc.problemdetails.enabled=true +spring.threads.virtual.enabled=true + +spring.testcontainers.beans.startup=parallel + +################ Actuator ##################### +management.endpoints.web.exposure.include=health,info,metrics,prometheus +management.endpoint.health.show-details=always +management.metrics.tags.application=${spring.application.name} +management.metrics.enable.spring.rabbitmq=true + +################ Database ##################### +spring.jpa.show-sql=false +spring.jpa.open-in-view=false +spring.data.jpa.repositories.bootstrap-mode=deferred +spring.datasource.hikari.auto-commit=false +spring.datasource.hikari.pool-name=HikariPool-${spring.application.name} +spring.datasource.hikari.data-source-properties.ApplicationName=${spring.application.name} +spring.jpa.hibernate.ddl-auto=validate +#spring.jpa.properties.hibernate.format_sql=true +spring.jpa.properties.hibernate.jdbc.time_zone=UTC +spring.jpa.properties.hibernate.generate_statistics=false +spring.jpa.properties.hibernate.jdbc.batch_size=25 +spring.jpa.properties.hibernate.order_inserts=true +spring.jpa.properties.hibernate.order_updates=true +spring.jpa.properties.hibernate.query.fail_on_pagination_over_collection_fetch=true +spring.jpa.properties.hibernate.query.in_clause_parameter_padding=true +spring.jpa.properties.hibernate.query.plan_cache_max_size=4096 +spring.jpa.properties.hibernate.connection.provider_disables_autocommit=true +spring.jpa.properties.hibernate.jdbc.lob.non_contextual_creation=true + diff --git a/boot-ultimate-redis/src/main/resources/application-cluster.properties b/boot-ultimate-redis/src/main/resources/application-cluster.properties index 40e2a23e3..b450245a7 100644 --- a/boot-ultimate-redis/src/main/resources/application-cluster.properties +++ b/boot-ultimate-redis/src/main/resources/application-cluster.properties @@ -1,3 +1,3 @@ -spring.data.redis.cluster.nodes=localhost:7000,localhost:7001,localhost:7002 -spring.data.redis.cluster.max-redirects=2 -spring.data.redis.lettuce.cluster.refresh.adaptive=true +spring.data.redis.cluster.nodes=localhost:7000,localhost:7001,localhost:7002 +spring.data.redis.cluster.max-redirects=2 +spring.data.redis.lettuce.cluster.refresh.adaptive=true diff --git a/boot-ultimate-redis/src/main/resources/application.properties b/boot-ultimate-redis/src/main/resources/application.properties index 1b0c318d6..866ea5c89 100644 --- a/boot-ultimate-redis/src/main/resources/application.properties +++ b/boot-ultimate-redis/src/main/resources/application.properties @@ -1,5 +1,5 @@ -cache.timeout=60 -cache.cacheExpirations.myControlledCache=180 - -spring.mvc.problemdetails.enabled=true -spring.threads.virtual.enabled=true +cache.timeout=60 +cache.cacheExpirations.myControlledCache=180 + +spring.mvc.problemdetails.enabled=true +spring.threads.virtual.enabled=true diff --git a/httpClients/boot-restclient/src/main/resources/application.properties b/httpClients/boot-restclient/src/main/resources/application.properties index e2aae6aaf..f617fb865 100644 --- a/httpClients/boot-restclient/src/main/resources/application.properties +++ b/httpClients/boot-restclient/src/main/resources/application.properties @@ -1,10 +1,10 @@ -spring.application.name=boot-restclient - -spring.mvc.problemdetails.enabled=true -spring.threads.virtual.enabled=true - -application.external-call-url=https://jsonplaceholder.typicode.com - -spring.http.client.factory=jdk -spring.http.client.connect-timeout=PT30S -spring.http.client.read-timeout=PT1M +spring.application.name=boot-restclient + +spring.mvc.problemdetails.enabled=true +spring.threads.virtual.enabled=true + +application.external-call-url=https://jsonplaceholder.typicode.com + +spring.http.client.factory=jdk +spring.http.client.connect-timeout=PT30S +spring.http.client.read-timeout=PT1M diff --git a/jpa/boot-jpa-jooq-sample/src/main/resources/application.properties b/jpa/boot-jpa-jooq-sample/src/main/resources/application.properties index 4fc10e89a..b6739de35 100644 --- a/jpa/boot-jpa-jooq-sample/src/main/resources/application.properties +++ b/jpa/boot-jpa-jooq-sample/src/main/resources/application.properties @@ -1,30 +1,30 @@ -spring.application.name=boot-jpa-jooq-sample -server.port=8080 -server.shutdown=graceful -spring.jmx.enabled=false -spring.mvc.problemdetails.enabled=true - -################ Actuator ##################### -management.endpoints.web.exposure.include=configprops,env,health,info,logfile,loggers,metrics,prometheus -management.endpoint.health.access=read_only - -################ Database ##################### -spring.jpa.show-sql=false -spring.jpa.open-in-view=false -spring.data.jpa.repositories.bootstrap-mode=deferred -spring.datasource.hikari.auto-commit=false -spring.datasource.hikari.pool-name=HikariPool-${spring.application.name} -spring.datasource.hikari.data-source-properties.ApplicationName=${spring.application.name} -spring.jpa.hibernate.ddl-auto=none -#spring.jpa.properties.hibernate.format_sql=true -spring.jpa.properties.hibernate.jdbc.time_zone=UTC -spring.jpa.properties.hibernate.generate_statistics=false -spring.jpa.properties.hibernate.jdbc.batch_size=25 -spring.jpa.properties.hibernate.order_inserts=true -spring.jpa.properties.hibernate.order_updates=true -spring.jpa.properties.hibernate.query.fail_on_pagination_over_collection_fetch=true -spring.jpa.properties.hibernate.query.in_clause_parameter_padding=true -spring.jpa.properties.hibernate.query.plan_cache_max_size=4096 -spring.jpa.properties.hibernate.connection.provider_disables_autocommit=true -spring.jpa.properties.hibernate.jdbc.lob.non_contextual_creation=true -spring.threads.virtual.enabled=true +spring.application.name=boot-jpa-jooq-sample +server.port=8080 +server.shutdown=graceful +spring.jmx.enabled=false +spring.mvc.problemdetails.enabled=true + +################ Actuator ##################### +management.endpoints.web.exposure.include=configprops,env,health,info,logfile,loggers,metrics,prometheus +management.endpoint.health.access=read_only + +################ Database ##################### +spring.jpa.show-sql=false +spring.jpa.open-in-view=false +spring.data.jpa.repositories.bootstrap-mode=deferred +spring.datasource.hikari.auto-commit=false +spring.datasource.hikari.pool-name=HikariPool-${spring.application.name} +spring.datasource.hikari.data-source-properties.ApplicationName=${spring.application.name} +spring.jpa.hibernate.ddl-auto=none +#spring.jpa.properties.hibernate.format_sql=true +spring.jpa.properties.hibernate.jdbc.time_zone=UTC +spring.jpa.properties.hibernate.generate_statistics=false +spring.jpa.properties.hibernate.jdbc.batch_size=25 +spring.jpa.properties.hibernate.order_inserts=true +spring.jpa.properties.hibernate.order_updates=true +spring.jpa.properties.hibernate.query.fail_on_pagination_over_collection_fetch=true +spring.jpa.properties.hibernate.query.in_clause_parameter_padding=true +spring.jpa.properties.hibernate.query.plan_cache_max_size=4096 +spring.jpa.properties.hibernate.connection.provider_disables_autocommit=true +spring.jpa.properties.hibernate.jdbc.lob.non_contextual_creation=true +spring.threads.virtual.enabled=true diff --git a/jpa/keyset-pagination/boot-data-window-pagination/src/main/resources/application-local.properties b/jpa/keyset-pagination/boot-data-window-pagination/src/main/resources/application-local.properties index bc7b0b95f..62c4e116a 100644 --- a/jpa/keyset-pagination/boot-data-window-pagination/src/main/resources/application-local.properties +++ b/jpa/keyset-pagination/boot-data-window-pagination/src/main/resources/application-local.properties @@ -1,5 +1,5 @@ -spring.datasource.driver-class-name=org.postgresql.Driver -spring.datasource.url=jdbc:postgresql://localhost:5432/appdb -spring.datasource.username=appuser -spring.datasource.password=secret - +spring.datasource.driver-class-name=org.postgresql.Driver +spring.datasource.url=jdbc:postgresql://localhost:5432/appdb +spring.datasource.username=appuser +spring.datasource.password=secret + diff --git a/jpa/keyset-pagination/boot-data-window-pagination/src/main/resources/application.properties b/jpa/keyset-pagination/boot-data-window-pagination/src/main/resources/application.properties index 4066acfea..f022a296a 100644 --- a/jpa/keyset-pagination/boot-data-window-pagination/src/main/resources/application.properties +++ b/jpa/keyset-pagination/boot-data-window-pagination/src/main/resources/application.properties @@ -1,35 +1,35 @@ -spring.application.name=boot-data-window-paginiation -server.port=8080 -server.shutdown=graceful -spring.jmx.enabled=false -spring.mvc.problemdetails.enabled=true -spring.threads.virtual.enabled=true - -################ Actuator ##################### -management.endpoints.web.exposure.include=configprops,env,health,info,logfile,loggers,metrics,prometheus -management.endpoint.health.show-details=always - -################ Database ##################### -spring.jpa.show-sql=false -spring.jpa.open-in-view=false -spring.data.jpa.repositories.bootstrap-mode=deferred -spring.datasource.hikari.auto-commit=false -spring.datasource.hikari.data-source-properties.ApplicationName=${spring.application.name} -spring.jpa.hibernate.ddl-auto=none -#spring.jpa.properties.hibernate.format_sql=true -spring.jpa.properties.hibernate.jdbc.time_zone=UTC -spring.jpa.properties.hibernate.generate_statistics=false -spring.jpa.properties.hibernate.jdbc.batch_size=25 -spring.jpa.properties.hibernate.order_inserts=true -spring.jpa.properties.hibernate.order_updates=true -spring.jpa.properties.hibernate.query.fail_on_pagination_over_collection_fetch=true -spring.jpa.properties.hibernate.query.in_clause_parameter_padding=true -spring.jpa.properties.hibernate.query.plan_cache_max_size=4096 -spring.jpa.properties.hibernate.connection.provider_disables_autocommit=true -spring.jpa.properties.hibernate.jdbc.lob.non_contextual_creation=true - -jdbc.datasource-proxy.query.enable-logging=true -jdbc.datasource-proxy.logging=slf4j -jdbc.datasource-proxy.include-parameter-values=true -jdbc.datasource-proxy.query.logger-name=query-logger - +spring.application.name=boot-data-window-paginiation +server.port=8080 +server.shutdown=graceful +spring.jmx.enabled=false +spring.mvc.problemdetails.enabled=true +spring.threads.virtual.enabled=true + +################ Actuator ##################### +management.endpoints.web.exposure.include=configprops,env,health,info,logfile,loggers,metrics,prometheus +management.endpoint.health.show-details=always + +################ Database ##################### +spring.jpa.show-sql=false +spring.jpa.open-in-view=false +spring.data.jpa.repositories.bootstrap-mode=deferred +spring.datasource.hikari.auto-commit=false +spring.datasource.hikari.data-source-properties.ApplicationName=${spring.application.name} +spring.jpa.hibernate.ddl-auto=none +#spring.jpa.properties.hibernate.format_sql=true +spring.jpa.properties.hibernate.jdbc.time_zone=UTC +spring.jpa.properties.hibernate.generate_statistics=false +spring.jpa.properties.hibernate.jdbc.batch_size=25 +spring.jpa.properties.hibernate.order_inserts=true +spring.jpa.properties.hibernate.order_updates=true +spring.jpa.properties.hibernate.query.fail_on_pagination_over_collection_fetch=true +spring.jpa.properties.hibernate.query.in_clause_parameter_padding=true +spring.jpa.properties.hibernate.query.plan_cache_max_size=4096 +spring.jpa.properties.hibernate.connection.provider_disables_autocommit=true +spring.jpa.properties.hibernate.jdbc.lob.non_contextual_creation=true + +jdbc.datasource-proxy.query.enable-logging=true +jdbc.datasource-proxy.logging=slf4j +jdbc.datasource-proxy.include-parameter-values=true +jdbc.datasource-proxy.query.logger-name=query-logger + diff --git a/open-api-spring-boot/src/main/resources/application.properties b/open-api-spring-boot/src/main/resources/application.properties index 2b1606aa9..4ee765c36 100644 --- a/open-api-spring-boot/src/main/resources/application.properties +++ b/open-api-spring-boot/src/main/resources/application.properties @@ -1,10 +1,10 @@ -server.port=8080 - -## When using Feign -#customerController.url=http://localhost:8081 -## When deployed in server, provide correct URL -#openapi.springBootJpaCustomsequence.base-path=http://localhost:8081 - -spring.jackson.date-format=org.openapitools.RFC3339DateFormat +server.port=8080 + +## When using Feign +#customerController.url=http://localhost:8081 +## When deployed in server, provide correct URL +#openapi.springBootJpaCustomsequence.base-path=http://localhost:8081 + +spring.jackson.date-format=org.openapitools.RFC3339DateFormat spring.jackson.serialization.WRITE_DATES_AS_TIMESTAMPS=false -spring.threads.virtual.enabled=true +spring.threads.virtual.enabled=true diff --git a/r2dbc/boot-r2dbc-reactive-cache/src/main/resources/application.properties b/r2dbc/boot-r2dbc-reactive-cache/src/main/resources/application.properties index 2b7a7daac..f6a20a74a 100644 --- a/r2dbc/boot-r2dbc-reactive-cache/src/main/resources/application.properties +++ b/r2dbc/boot-r2dbc-reactive-cache/src/main/resources/application.properties @@ -1,19 +1,19 @@ -spring.application.name=boot-r2dbc-reactive-cache +spring.application.name=boot-r2dbc-reactive-cache spring.jmx.enabled=false -spring.threads.virtual.enabled=true -spring.webflux.problemdetails.enabled=true - -server.port=8080 -server.shutdown=graceful - -################ Actuator ##################### -management.endpoints.web.exposure.include=configprops,env,health,info,logfile,loggers,metrics,prometheus -management.endpoint.health.show-details=always - -spring.flyway.locations=classpath:/db/migration/{vendor} - -###### Docker Compose Configuration ###### -spring.docker.compose.lifecycle-management=start_and_stop -spring.docker.compose.file=${user.dir}/r2dbc/boot-reactive-cache/compose.yaml -spring.docker.compose.skip.in-tests=true -#spring.docker.compose.profiles.active=dev +spring.threads.virtual.enabled=true +spring.webflux.problemdetails.enabled=true + +server.port=8080 +server.shutdown=graceful + +################ Actuator ##################### +management.endpoints.web.exposure.include=configprops,env,health,info,logfile,loggers,metrics,prometheus +management.endpoint.health.show-details=always + +spring.flyway.locations=classpath:/db/migration/{vendor} + +###### Docker Compose Configuration ###### +spring.docker.compose.lifecycle-management=start_and_stop +spring.docker.compose.file=${user.dir}/r2dbc/boot-reactive-cache/compose.yaml +spring.docker.compose.skip.in-tests=true +#spring.docker.compose.profiles.active=dev diff --git a/r2dbc/boot-r2dbc-sample/src/main/resources/application-local.properties b/r2dbc/boot-r2dbc-sample/src/main/resources/application-local.properties index cb0aefe0d..06d12ba9f 100644 --- a/r2dbc/boot-r2dbc-sample/src/main/resources/application-local.properties +++ b/r2dbc/boot-r2dbc-sample/src/main/resources/application-local.properties @@ -1,8 +1,8 @@ -spring.r2dbc.url=r2dbc:postgresql://localhost:5432/appdb?maxIdleTime=PT60S -spring.r2dbc.username=appuser -spring.r2dbc.password=secret - -#liquibase -spring.liquibase.url=jdbc:postgresql://localhost:5432/appdb?maxIdleTime=PT60S -spring.liquibase.user=${spring.r2dbc.username} +spring.r2dbc.url=r2dbc:postgresql://localhost:5432/appdb?maxIdleTime=PT60S +spring.r2dbc.username=appuser +spring.r2dbc.password=secret + +#liquibase +spring.liquibase.url=jdbc:postgresql://localhost:5432/appdb?maxIdleTime=PT60S +spring.liquibase.user=${spring.r2dbc.username} spring.liquibase.password=${spring.r2dbc.password} \ No newline at end of file diff --git a/r2dbc/boot-r2dbc-sample/src/main/resources/application.properties b/r2dbc/boot-r2dbc-sample/src/main/resources/application.properties index 9d3c60a8d..ffb18ab9f 100644 --- a/r2dbc/boot-r2dbc-sample/src/main/resources/application.properties +++ b/r2dbc/boot-r2dbc-sample/src/main/resources/application.properties @@ -1,11 +1,11 @@ -spring.application.name=boot-r2dbc-sample -server.port=8080 -server.shutdown=graceful -spring.main.allow-bean-definition-overriding=true -spring.jmx.enabled=false -spring.webflux.problemdetails.enabled=true - -################ Actuator ##################### -management.endpoints.web.exposure.include=configprops,env,health,info,logfile,loggers,metrics,prometheus +spring.application.name=boot-r2dbc-sample +server.port=8080 +server.shutdown=graceful +spring.main.allow-bean-definition-overriding=true +spring.jmx.enabled=false +spring.webflux.problemdetails.enabled=true + +################ Actuator ##################### +management.endpoints.web.exposure.include=configprops,env,health,info,logfile,loggers,metrics,prometheus management.endpoint.health.show-details=always spring.threads.virtual.enabled=true \ No newline at end of file