# autoload-cache-spring-boot-starter **Repository Path**: qiujiayu/autoload-cache-spring-boot-starter ## Basic Information - **Project Name**: autoload-cache-spring-boot-starter - **Description**: autoload-cache spring-boot-starter - **Primary Language**: Java - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 5 - **Forks**: 5 - **Created**: 2017-07-30 - **Last Updated**: 2025-10-23 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # autoload-cache-spring-boot-starter --------------------------------------------- [![Build Status](http://img.shields.io/travis/qiujiayu/autoload-cache-spring-boot-starter.svg?style=flat&branch=master)](https://travis-ci.org/qiujiayu/autoload-cache-spring-boot-starter) [![Maven Central](https://img.shields.io/maven-central/v/com.github.qiujiayu/autoload-cache-spring-boot-starter.svg?style=flat-square)](https://maven-badges.herokuapp.com/maven-central/com.github.qiujiayu/autoload-cache-spring-boot-starter/) ![GitHub license](https://img.shields.io/github/license/qiujiayu/autoload-cache-spring-boot-starter.svg?style=flat-square) 使用说明: ### 1. Maven dependency: com.github.qiujiayu autoload-cache-spring-boot-starter ${version} ### 2. 配置请参考[AutoloadCacheProperties](src/main/java/com/jarvis/cache/autoconfigure/AutoloadCacheProperties.java) ### 3. 依赖注入请参考[AutoloadCacheManageConfiguration](src/main/java/com/jarvis/cache/autoconfigure/AutoloadCacheManageConfiguration.java) 如果出现AOP相关的错误,参考[https://github.com/qiujiayu/autoload-cache-spring-boot-starter/issues/1](https://github.com/qiujiayu/autoload-cache-spring-boot-starter/issues/1) ### 4. 管理工具 通过[http://localhost:8080/autoload-cache-ui.html](http://localhost:8080/autoload-cache-ui.html) 进入管理页面: ![autoload-cache-ui.html](./doc/autoload-cache-ui.html.png) @Transactional 与 @Cache 同时使用到同一个类中时: 在实现接口的情况下: 1. 当@EnableTransactionManagement(proxyTargetClass = true)时 @Cache注解必须加在class方法中; 2. @EnableTransactionManagement(proxyTargetClass = false)时, @Cache注解必须加在interface及class中都可以; 总结:除Mybatis Mapper接口外,尽量将@Cache注解必须加在class方法中。 QQ群:429274886 Spring boot2 使用7.0.x版本; 源码在master分支 Spring boot1 使用6.10.x版本; 源码在spring-boot1分支