@Value

@Value

  • @Value(”${key:default}”) on variable can get key-value pair’s value from application.properties