springboot自定义组件
2020-07-03 10:21:22 2020-07-03 468 0
以仿真从redis获取token为例
1.新建maven工程
- <parent>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-parent</artifactId>
- <version>2.0.0.RELEASE</version>
- </parent>
-
- <dependencies>
- <!-- 自定义springboot的组件,必须引入此依赖作为入口 -->
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-autoconfigure</artifactId>
- 暂无评论