GithubHelp home page GithubHelp logo

sql-garble-spring-boot's Introduction

sql拦截修改器 spring boot start

引入

<dependencies>
    <dependency>
        <groupId>com.astercasc</groupId>
        <artifactId>sql-garble-spring-boot-starter</artifactId>
        <version>${version}</version>
    </dependency>
</dependencies>

使用

mybatis-sql-garble

说明

  1. 本项目依赖mybatis,需要项目中有引入mybatis
  2. 本项目为mybatis-sql-garble的spring boot版本, 如果引入spring boot版本, 不需要再主动引用mybatis-sql-garble

注意

  1. 如果包含自定义的拦截器且拦截器的操作是使用控制invocation的args[1]来实现Sql变更的, 那么最好使用@AutoConfigureAfter让自定义的拦截器先加载
  2. 使用@AutoConfigureAfter等注解时,需要注意如果使用@Configuration自定义配置类, 那么这个注解不会生效,需要在resource中添加META—INF文件夹,使用spring.factories完成自动配置类注入
org.springframework.boot.autoconfigure.EnableAutoConfiguration=\
com.aster.plugin.garble.spring.config.GarbleAutoConfig

sql-garble-spring-boot's People

Contributors

astercass 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.