29 lines
568 B
Java
29 lines
568 B
Java
package com.baeldung.properties;
|
|
|
|
import org.springframework.boot.context.properties.ConfigurationProperties;
|
|
import org.springframework.context.annotation.Configuration;
|
|
|
|
@Configuration
|
|
@ConfigurationProperties(prefix = "additional")
|
|
public class AdditionalProperties {
|
|
|
|
private String unit;
|
|
private int max;
|
|
|
|
public String getUnit() {
|
|
return unit;
|
|
}
|
|
|
|
public void setUnit(String unit) {
|
|
this.unit = unit;
|
|
}
|
|
|
|
public int getMax() {
|
|
return max;
|
|
}
|
|
|
|
public void setMax(int max) {
|
|
this.max = max;
|
|
}
|
|
}
|