All Projects → cuisongliu → druid-boot-starter

cuisongliu / druid-boot-starter

Licence: MIT license
druid

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to druid-boot-starter

Mi S
基于SpringBoot+SpringCloud+Mybatis主流框架搭建的分布式敏捷开发系统架构,为中、小型项目打造企业级基础开发多种解决方案。
Stars: ✭ 140 (+976.92%)
Mutual labels:  druid
Fastdep
Fast integration dependencies in spring boot.是一个快速集成依赖的框架,集成了一些常用公共的依赖。例:多数据源,Redis,JWT...
Stars: ✭ 178 (+1269.23%)
Mutual labels:  druid
Helicalinsight
Helical Insight software is world’s first Open Source Business Intelligence framework which helps you to make sense out of your data and make well informed decisions.
Stars: ✭ 214 (+1546.15%)
Mutual labels:  druid
Plyql
MySQL-like queries for Druid built on top of Plywood
Stars: ✭ 148 (+1038.46%)
Mutual labels:  druid
Mall
基于SpringBoot的网上商城
Stars: ✭ 171 (+1215.38%)
Mutual labels:  druid
Spring Boot Sample
Spring-boot 集成druid数据库连接池,Spring-boot实现druid的动态数据源,Spring-boot实现定时任务schedule,spring-boot集成mybatis
Stars: ✭ 180 (+1284.62%)
Mutual labels:  druid
Lovinghome Real Estate Platform
⚡️基于springboot+MyBatis+FreeMarker+redis+nginx+Echarts+druid等技术的JavaWeb项目------恋家房产平台(采用B/S架构,项目包含前后台,分为前台展示系统及后台管理系统。前台系统包含首页门户、登录注册、房产推荐、房产详情、热门房产、房产及小区搜索、经纪人列表及经纪机构创建、创建房产、房产百科、地图找房、用户个人中心、房产评论、房产打分等模块。 后台管理系统包含房产信息管理、用户管理、管理员管理、小区信息管理、博客管理、评论管理、经纪人管理、系统统计与多种图表展示、数据报表导入导出等模块。系统介绍及详细功能点、技术点见项目内文档描述)
Stars: ✭ 140 (+976.92%)
Mutual labels:  druid
Onlinemall
⬆️ 基于springboot+thymeleaf+spring data jpa+druid+bootstrap+layui等技术的JavaWeb电商项目(项目包含前后台,分为前台商城系统及后台管理系统。前台商城系统包含首页门户、商品推荐、商品分类、商品搜索、商品展示、商品详情、购物车、订单流程、用户中心、评论(有些bug,当时做得不够好,下一个项目的评论模块比这个好)、模拟支付等模块。 后台管理系统包含商品管理、订单管理、用户管理等模块。系统介绍及详细功能点、技术点见项目内文档描述)☀️
Stars: ✭ 230 (+1669.23%)
Mutual labels:  druid
Druidry
Java based Druid Query Generator library
Stars: ✭ 174 (+1238.46%)
Mutual labels:  druid
My Blog Layui
layui 版本的 My-Blog : A simple & beautiful blogging system implemented with spring-boot & layui & thymeleaf & mybatis My Blog 是由 SpringBoot + Layui + Mybatis + Thymeleaf 等技术实现的 Java 博客系统,页面美观、功能齐全、部署简单及完善的代码,一定会给使用者无与伦比的体验
Stars: ✭ 204 (+1469.23%)
Mutual labels:  druid
Fili
Easily make RESTful web services for time series reporting with Big Data analytics engines like Druid and SQL Databases.
Stars: ✭ 151 (+1061.54%)
Mutual labels:  druid
Swiv
For the open source UI formerly know as Pivot
Stars: ✭ 165 (+1169.23%)
Mutual labels:  druid
Roaringbitmap
A better compressed bitset in Java
Stars: ✭ 2,460 (+18823.08%)
Mutual labels:  druid
Okhelper Service
OK帮 云进销存 (SpringBoot Restful 全家桶)
Stars: ✭ 146 (+1023.08%)
Mutual labels:  druid
Layim
基于HTML5 WebSocket的一款IM即时通讯软件,使用Gradle集成了Scala、SpringBoot、Spring MVC、Mybatis、Redis等,前端使用了LayIm框架
Stars: ✭ 218 (+1576.92%)
Mutual labels:  druid
Skill6 Website Backend
java进阶开发,高级版web项目。基于dubbo实现分布式微服务架构,基于spring boot、spring mvc、mybatis、docker、ELK、redis、vue.js、node.js等技术实现的技术分享交流网站。网站名称:技术流,英文名:skill6。主要功能有:登录注册、单点登录、restful设计、文章及评论、代码及资源下载、主题讨论等。持续更新中...
Stars: ✭ 140 (+976.92%)
Mutual labels:  druid
Seconds Kill
基于 Springboot + Redis + Kafka 的秒杀系统,乐观锁 + 缓存 + 限流 + 异步,TPS 从 500 优化到 3000
Stars: ✭ 180 (+1284.62%)
Mutual labels:  druid
Spring Cloud Shop
spring cloud 版分布式电商项目,全力打造顶级多模块,高可用,高扩展电商项目
Stars: ✭ 248 (+1807.69%)
Mutual labels:  druid
Spring Dubbo Service
微服务 spring dubbo项目:dubbo rpc;druid数据源连接池;mybatis配置集成,多数据源;jmx监控MBean;定时任务;aop;ftp;测试;Metrics监控;参数验证;跨域处理;shiro权限控制;consul服务注册,发现;redis分布式锁;SPI服务机制;cat监控;netty服务代理;websocket;disconf;mongodb集成;rest;docker;fescar
Stars: ✭ 224 (+1623.08%)
Mutual labels:  druid
Springcloud Miaosha
一个基于spring cloud Greenwich的简单秒杀电子商城项目,适合新人阅读。A simple spring cloud based seckill shopping mall project, suitable for young people to read. It can be used as a paper material for academic defense.
Stars: ✭ 187 (+1338.46%)
Mutual labels:  druid

Build Status Dependency Status license license

Druid integration with springboot

Druid-Spring-Boot-Starter 帮助你集成通用 Druid 到 Spring Boot。

Druid-Spring-Boot-Starter will help you use Druid with Spring Boot.

How to use

maven

在pom.xml加入nexus资源库(解决中国访问慢的问题,已经加入中央仓库)

Add the following nexus repository(fix china access slow problem,already append to central nexus.) to your pom.xml:

<repositories>
    <repository>
        <id>nexus</id>
        <name>nexus</name>
        <url>http://maven.cuisongliu.com/content/groups/public</url>
        <releases>
            <enabled>true</enabled>
        </releases>
        <snapshots>
            <enabled>false</enabled>
        </snapshots>
    </repository>
</repositories>

在pom.xml加入依赖

Add the following dependency to your pom.xml:

<dependency>
       <groupId>com.alibaba</groupId>
       <artifactId>druid</artifactId>
       <version>1.1.5</version>
</dependency>
<dependency>
   <groupId>com.cuisongliu</groupId>
   <artifactId>druid-spring-boot-starter</artifactId>
   <version>1.3</version>
 </dependency>

gradle

在build.gradle加入nexus资源库(解决中国访问慢的问题,已经加入中央仓库)

Add the following nexus repository(fix china access slow problem,already append to central nexus.) to your build.gradle:

allprojects {
    repositories {
        mavenLocal()
        maven { url "http://maven.cuisongliu.com/content/groups/public" }
        mavenCentral()
        jcenter()
    }
}

在build.gradle加入依赖

Add the following dependency to your build.gradle:

compile "com.alibaba:druid:1+"
compile "com.cuisongliu:druid-spring-boot-starter:1+"

springboot properties set

在application.properties 或者application.yml加入相关参数

at application.properties or application.yml append some properties.

properties IsNull? Defaults
spring.datasource.url no null
spring.datasource.username no null
spring.datasource.password no null
spring.datasource.druid.max-active yes 8
spring.datasource.druid.min-idle yes 0
spring.datasource.druid.initial-size yes 0
spring.datasource.druid.max-wait yes -1
spring.datasource.druid.time-between-eviction-runs-millis yes 60 * 1000L
spring.datasource.druid.max-open-prepared-statements yes -1
spring.datasource.druid.test-on-borrow yes false
spring.datasource.druid.validation-query yes null
spring.datasource.druid.test-on-return yes false
spring.datasource.druid.test-while-idle yes true
spring.datasource.druid.pool-prepared-statements yes false
spring.datasource.druid.filters yes false
spring.datasource.druid.max-pool-prepared-statement-per-connection-size yes -1
spring.datasource.druid.validation-query-timeout yes -1
spring.datasource.druid.min-evictable-idle-time-millis yes 1000L * 60L * 30L
spring.datasource.druid.connection-properties yes null

sql slow config:

spring:
 datasource:
    druid:
      connection-properties:
        - druid.stat.mergeSql=true
        - druid.stat.slowSqlMillis=5000

servlet properties

properties IsNull? Defaults
spring.datasource.druid.servlet.enable yes true
spring.datasource.druid.servlet.url-mappings yes /druid/*
spring.datasource.druid.servlet.allow yes null
spring.datasource.druid.servlet.deny yes null
spring.datasource.druid.servlet.login-username yes null
spring.datasource.druid.servlet.login-password yes null
spring.datasource.druid.servlet.reset-enable yes null

filter properties

properties IsNull? Defaults
spring.datasource.druid.servlet.enable yes false
spring.datasource.druid.servlet.exclusions yes .js,.gif,.jpg,.png,.css,.ico,/druid/*
spring.datasource.druid.servlet.url-pattern yes /*
spring.datasource.druid.servlet.session-stat-max-count yes 1000
spring.datasource.druid.servlet.session-stat-enable yes false
spring.datasource.druid.servlet.principal-session-name yes USER_SESSION
spring.datasource.druid.servlet.principal-cookie-name yes USER_COOKIE
spring.datasource.druid.servlet.profile-enable yes true

stat properties

properties IsNull? Defaults
spring.datasource.druid.stat.enable yes false
spring.datasource.druid.stat.aop-types yes null
spring.datasource.druid.stat.target-bean-type yes null
spring.datasource.druid.stat.bean-names yes null
/spring.datasource.druid.stat.patterns yes null

spring.datasource.druid.stat.aop-types 待选值有[ type,name,pointcut ]

当enable=true时候,aop-types必须有type或者name的其中一项.

  • 当aop-types有name值时,bean-names不能为空.
  • 当aop-types有type值时,target-bean-type不能为空.
  • 当aop-types有pointcut值时,patterns不能为空.

spring.datasource.druid.stat.aop-types selected value is [ type,name,pointcut ]

When enable=true , aop-types must have either type or name.

  • When aop-types has name value, bean-names can not be null.
  • When aop-types have type values, target-bean-type can not be empty.
  • When aop-types have pointcut values, patterns can not be empty.

Example

spring:
  datasource:
    url: xxx
    username: xxx
    password: xxx
    druid:
          filters: stat,wall,log4j
          connection-properties:
            - druid.stat.mergeSql=true
            - druid.stat.slowSqlMillis=5000
          filter:
            enable: true
            principal-session-name: session_admin
            profile-enable: true
            principal-cookie-name: session_admin
            session-stat-enable: true
          stat:
            enable: true
            aop-type: 
               - name
               - type
               - pointcut
            target-bean-type: com.cuisongliu.springboot.core.mapper.MyMapper
            bean-names:
               - UserMapper
               - userMapper
            patterns:
              - com.xinyuewulian.mapper.*
              - com.xinyuewulian.service.*

Acknowledgments

druid.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].