自定义一个SpringBoot - Starter
论述
1、首先starter也是一个springboot项目
2、我们完成这个项目,并将其打包到maven中,从而供其他项目工程的使用
自定义Starter
1、创建springboot - starter工程
2、创建配置类,用于其他工程使用starter的时候,配置的数据信息
@Data
@ConfigurationProperties(prefix = "mystarter")
public class MyStarterProperties {
private String
原创
2021-09-19 01:01:48 ·
540 阅读 ·
0 评论