Skip to content

middware/autoload-cache-spring-boot-starter

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

64 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

autoload-cache-spring-boot-starter


Build Status Maven Central GitHub license

使用说明:

1. Maven dependency:

<dependency>
  <groupId>com.github.qiujiayu</groupId>
  <artifactId>autoload-cache-spring-boot-starter</artifactId>
  <version>${version}</version>
</dependency>

2. 配置请参考AutoloadCacheProperties

3. 依赖注入请参考AutoloadCacheManageConfiguration

如果出现AOP相关的错误,参考https://github.com/qiujiayu/autoload-cache-spring-boot-starter/issues/1

4. 管理工具

通过http://localhost:8080/autoload-cache-ui.html 进入管理页面:

autoload-cache-ui.html

@Transactional 与 @Cache 同时使用到同一个类中时:

在实现接口的情况下:

  1. 当@EnableTransactionManagement(proxyTargetClass = true)时 @Cache注解必须加在class方法中;
  2. @EnableTransactionManagement(proxyTargetClass = false)时, @Cache注解必须加在interface及class中都可以;

总结:初Mybatis Mapper接口外,尽量将@Cache注解必须加在class方法中。

QQ群:429274886

About

autoload-cache spring boot starter

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 70.1%
  • HTML 29.9%