Add Kebab casing

This commit is contained in:
Zahid Khan 2023-04-26 10:47:56 +05:30
parent 1137565f01
commit 7675b0c48d
3 changed files with 48 additions and 1 deletions

View File

@ -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);
}
}

View File

@ -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;
}
}

View File

@ -32,3 +32,12 @@ environment.name=${OS}
java.home.and.environment=${JAVA_HOME}+${OS} java.home.and.environment=${JAVA_HOME}+${OS}
not.existing.system.property=${thispropertydoesnotexist} 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"