当前位置:网站首页>Use the default value method if the configuration file does not exist

Use the default value method if the configuration file does not exist

2022-06-09 05:49:00 Xiao Sheng, you are polite

This is something to watch out for , Is to return true perhaps false Of

@Value("${syslog.switch.option:off}")
private Boolean option;

You can also return the fields you want

@Value("${syslog.pan.option:pan}")
private String option;
原网站

版权声明
本文为[Xiao Sheng, you are polite]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/03/202203021426592212.html