VM option을 이용한 방법
-Dapp.name=spring5
.properties 파일을 이용
// app.properties
app.about=spring
@Configuration에서 파일 호출
@SpringBootAppication
@PropertySource("classpath:/app.properties")
@Value("${app.name}")
String appName;
// or
Environment environment = ctx.getEnvironment();
environment.getProperty("app.name");
environment.getProperty("app.about");