________________springbootの自定义starter

自定义配置springboot starter的步骤

1、配置一个类,配置类里面需要装配好要提供出去的类

2、使用1️⃣@enable,配置@import注解使用 

    2️⃣/META-INF、spring.factories 配置

org.springframework.boot.context.properties.EnableConfigurationProperties=

3、提前配置 Redis.host  Redis.port

redis 服务器开启

进入Redis目录  Redis-server 

链接Redis  Redis-cli 

查看 keys *

猜你喜欢

转载自www.cnblogs.com/qiqisx/p/9384179.html