- spring-boot 2.x 自定义starter的配置文件,在resources下创建META-INF/spring.factories文件,内容如下:
org.springframework.boot.autoconfigure.EnableAutoConfiguration=\
com.github.jesse.l2cache.spring.config.L2CacheConfiguration,\
com.github.jesse.l2cache.spring.config.HotKeyConfiguration
- spring-boot 3.x 自定义starter的配置文件,在resources下创建META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports文件,内容如下:
com.github.jesse.l2cache.spring.config.L2CacheConfiguration
com.github.jesse.l2cache.spring.config.HotKeyConfiguration