Skip to content

Commit

Permalink
feat: use knowhowto props group
Browse files Browse the repository at this point in the history
  • Loading branch information
Dima Denysenko committed Nov 14, 2023
1 parent 7c1b206 commit df3a901
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import org.springframework.boot.context.properties.ConfigurationProperties;

@ConfigurationProperties(prefix = "ujar.cache", ignoreUnknownFields = false)
@ConfigurationProperties(prefix = "knowhowto.cache", ignoreUnknownFields = false)
public class CacheProperties {
Ehcache ehcache = new Ehcache();

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"properties": [
{
"name": "ujar.cache",
"name": "knowhowto.cache",
"description": "Cache configuration definitions.",
"type": "org.ujar.acmecloudnetflix.starter.cache.CacheSectionProperties"
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/docker/prometheus/prometheus.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Sample global config for monitoring uJar applications
# Sample global config for monitoring KnowHowSpringBoot applications
global :
scrape_interval : 15s # By default, scrape targets every 15 seconds.
evaluation_interval : 15s # By default, scrape targets every 15 seconds.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import org.springframework.boot.context.properties.ConstructorBinding;

@ConstructorBinding
@ConfigurationProperties(prefix = "ujar.restful-api-resources")
@ConfigurationProperties(prefix = "knowhowto.restful-api-resources")
public record RestfulApiResourcesProperties(@NonNull String departmentServiceBaseUrl,
@NonNull String departmentServiceUri) {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

@ConstructorBinding
@Validated
@ConfigurationProperties(prefix = "ujar.restful-client")
@ConfigurationProperties(prefix = "knowhowto.restful-client")
public record RestfulClientProperties(
@NonNull Duration connectTimeout,
@NonNull Duration readTimeout,
Expand Down
2 changes: 1 addition & 1 deletion user-profile-service/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ embedded :
mongodb :
enabled : false

ujar :
knowhowto :
restful-client :
connect-timeout : ${RESTFUL_CLIENT_CONNECT_TIMEOUT:1s}
read-timeout : ${RESTFUL_CLIENT_READ_TIMEOUT:10s}
Expand Down
2 changes: 1 addition & 1 deletion user-profile-service/src/test/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ eureka :
register-with-eureka : false
fetch-registry : false

ujar :
knowhowto :
restful-client :
connect-timeout : 100ms
read-timeout : 100ms
Expand Down

0 comments on commit df3a901

Please sign in to comment.