Giter Club home page Giter Club logo

cedar-data-spring-boot-starter's Introduction

Cedar Data Spring Boot Starter

一个易于使用的cedar-data(1.2.0+)框架的Spring Boot集成组件

依赖

maven

<dependency>
  <groupId>com.github.cedar12</groupId>
  <artifactId>cedar-data-spring-boot-starter</artifactId>
  <version>1.3.0</version>
</dependency>

gradle

compile group: 'com.github.cedar12', name: 'cedar-data-spring-boot-starter', version: '1.3.0'

配置

cedar:
    data: 
      scan-package: xx.xx.xx # ,分隔多个包
      display-sql: false # 是否日志输出sql 默认false
      max-layer: 5 #动态方法sql文件import导入的最大层数 默认5

数据源

@Configuration
public class DataSourceConfig{

    @ConfigurationProperties(prefix="spring.datasource.druid")
    @Bean
    public DataSource dataSource(){
        return new DruidDataSource();  
    }

}

事务

依赖spring jdbcTemplate

开启事务

使用Spring的 @EnableTransactionManager @Transactional注解

cedar-data-spring-boot-starter's People

Contributors

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