登录/注册
占位
占位
浏览量
占位
粉丝
占位
关注
springboot自定义组件
2020-07-03 10:21:22 2020-07-03
468
0

源于蚂蚁课堂的学习,点击这里查看

以仿真从redis获取token为例

1.新建maven工程

  1. <parent>
  2. <groupId>org.springframework.boot</groupId>
  3. <artifactId>spring-boot-starter-parent</artifactId>
  4. <version>2.0.0.RELEASE</version>
  5. </parent>
  6. <dependencies>
  7. <!-- 自定义springboot的组件,必须引入此依赖作为入口 -->
  8. <dependency>
  9. <groupId>org.springframework.boot</groupId>
  10. <artifactId>spring-boot-autoconfigure</artifactId>
  11. 暂无评论