一、在项目中三峡shift打开搜索,搜索spring.factories

找到位于spring-boot-autoconfigure下的spring.factories
二、Ctrl+F搜索redis相关自动配置

三、分析Redis自动配置类

四、分析RedisProperties文件

五、通过以上分析,我们在配置application.yml文件,就心里有数了

SpringBoot中Redis自动配置源码分析
原文:https://www.cnblogs.com/coderhu1/p/13926228.html