Skip to content

Commit

Permalink
Fix config naming
Browse files Browse the repository at this point in the history
  • Loading branch information
morpheus-87 committed Feb 29, 2024
1 parent a61db4b commit 5ca4114
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.ConstructorBinding;

@ConfigurationProperties(prefix = "cudami")
@ConfigurationProperties(prefix = "application")
@ConstructorBinding
public class CudamiServerConfig extends CudamiConfig {
public class ApplicationConfig extends CudamiConfig {

public CudamiServerConfig(
public ApplicationConfig(
Defaults defaults,
int offsetForAlternativePaging,
String repositoryFolderPath,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@
"de.digitalcollections.commons.springboot.contributor",
"de.digitalcollections.commons.springboot.monitoring"
})
@EnableConfigurationProperties(CudamiServerConfig.class)
@EnableConfigurationProperties(ApplicationConfig.class)
public class SpringConfig {}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cudami:
application:
typeDeclarations:

manufacturingTypes:
Expand Down
4 changes: 2 additions & 2 deletions metasvc-server/webapp/src/main/resources/application.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# local/default

cudami:
application:
defaults:
language: en
locale: en_US
Expand Down Expand Up @@ -102,7 +102,7 @@ springdoc:
---

# PROD
cudami:
application:
repositoryFolderPath: '/local/cudami/fileResources'

custom:
Expand Down
2 changes: 1 addition & 1 deletion metasvc-server/webapp/src/test/resources/application.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cudami:
application:
defaults:
language: en
locale: en_US
Expand Down

0 comments on commit 5ca4114

Please sign in to comment.