General approach: Write the parameters that need to be configured into the configuration file (for example: redis.properties) Load this file when the project starts, read the values inside, Initialize redisPool
The spring-data-redis spring package used in my project here is okay!
These are all configurations, just write them in the configuration file. At most, different profile configurations can be switched according to the environment.
General approach:
Write the parameters that need to be configured into the configuration file (for example: redis.properties)
Load this file when the project starts, read the values inside,
Initialize redisPool
The spring-data-redis spring package used in my project here is okay!
These are all configurations, just write them in the configuration file. At most, different profile configurations can be switched according to the environment.