简单了解一下

1.build.gradle中添加 依赖  org.springframework.boot:spring-boot-starter-data-redis

//定义依赖:声明项目中需要哪些依赖
dependencies {  //当前模块依赖项
    //compile 'org.springframework.boot:spring-boot-starter'
    //testCompile 'org.springframework.boot:spring-boot-starter-test'

    compile 'org.springframework.boot:spring-boot-starter-actuator'
    compile 'org.springframework.boot:spring-boot-starter-web'
    compile 'org.springframework.boot:spring-boot-starter-data-redis'
    testCompile group:'junit',name:'junit',version:'4.12'
View Code

相关文章:

  • 2022-12-23
  • 2021-09-17
  • 2021-10-11
  • 2021-07-22
  • 2021-05-17
  • 2021-08-26
  • 2022-01-09
  • 2021-09-19
猜你喜欢
  • 2021-12-27
  • 2021-10-22
  • 2022-12-23
  • 2022-12-23
  • 2022-01-13
  • 2021-05-28
相关资源
相似解决方案