Spring Boot - Application Configuration
Given the following YAML:
And this class:
What will be the value of
database: url: jdbc:mysql://localhost:3306/mydb maxConnections: 20
And this class:
@ConfigurationProperties(prefix = "database")
public class DatabaseConfig {
private String url;
private int maxConnections;
// getters and setters
}What will be the value of
databaseConfig.getMaxConnections() after binding?