Add Kebab casing
This commit is contained in:
parent
1137565f01
commit
7675b0c48d
|
@ -0,0 +1,12 @@
|
|||
package com.baeldung.error;
|
||||
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
|
||||
@SpringBootApplication
|
||||
public class KebabCasingDemoApplication {
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(KebabCasingDemoApplication.class, args);
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,26 @@
|
|||
package com.baeldung.error.configuration;
|
||||
|
||||
import org.springframework.boot.context.properties.ConfigurationProperties;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
|
||||
/**
|
||||
* <h2>This class is for Configuration.</h2>
|
||||
* <p>
|
||||
* Project Name: New folder
|
||||
*
|
||||
* @author Zahid Khan
|
||||
* @version 4/1/2023
|
||||
*/
|
||||
@Configuration
|
||||
@ConfigurationProperties(prefix = "profile.application-properties")
|
||||
public class MainConfiguration {
|
||||
private String name;
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(final String name) {
|
||||
this.name = name;
|
||||
}
|
||||
}
|
|
@ -31,4 +31,13 @@ bael.property=prodValue
|
|||
environment.name=${OS}
|
||||
java.home.and.environment=${JAVA_HOME}+${OS}
|
||||
not.existing.system.property=${thispropertydoesnotexist}
|
||||
baeldung.presentation=${HELLO_BAELDUNG}. Java is installed in the folder: ${JAVA_HOME}
|
||||
baeldung.presentation=${HELLO_BAELDUNG}. Java is installed in the folder: ${JAVA_HOME}
|
||||
#---
|
||||
#camelCasing
|
||||
#profile.applicationProperties.name="Baeldung"
|
||||
#PascalCasing
|
||||
#profile.ApplicationProperties.name="Baeldung"
|
||||
#SnakingCasing
|
||||
#profile.application_properties.name="Baeldung"
|
||||
#KebabCasing
|
||||
profile.application-properties.name="Baeldung"
|
Loading…
Reference in New Issue