Giter VIP home page Giter VIP logo

autoload-cache-spring-boot-starter's Introduction

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

autoload-cache-spring-boot-starter's People

Contributors

isaycheese avatar qiujiayu avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.