optimize config demo

pull/582/head
lepdou 3 years ago
parent 2439086bd6
commit f1e8c39b5f

@ -29,7 +29,6 @@ import org.springframework.web.bind.annotation.RestController;
* @author lepdou 2022-03-10
*/
@RestController
@RefreshScope
public class ConfigController {
@Value("${timeout:1000}")

@ -12,7 +12,6 @@ spring:
groups:
- name: ${spring.application.name} # group name
files: [ "config/application.properties", "config/bootstrap.yml" ] # config/application.properties takes precedence over config/bootstrap.yml
refresh-type: refresh_context
management:
endpoints:
web:

Loading…
Cancel
Save