[springboot] read the yml configuration file with the static method, which can be read dynamically according to different environments
There are many ways to read configuration files in springboot, which I will not describe here;
Background: there is a redis tool class in the common of the project. Because many modules use redisconfig, you don't want to write a redisconfig in each module, and the tool class is used. It is used in the way of static loading, but if you use the ...
Posted by Nat on Fri, 17 Sep 2021 13:24:26 -0700