Spring Boot - Application Configuration
Given the following properties:
What will be the value of
app.name=MyApp app.version=1.0and this class:
@ConfigurationProperties(prefix = "app")
public class AppConfig {
private String name;
private String version;
// getters and setters
}What will be the value of
appConfig.getVersion() after binding?