Reference link: https: //blog.csdn.net/dkbnull/article/details/81953190
Use @Value comment to read
(When reading the properties configuration file, the default is read application.properties .)
application.properties:
time=6000
java:
@Value("${time}") private Integer time;