All Projects → drtrang → Druid Spring Boot

drtrang / Druid Spring Boot

Licence: apache-2.0
Spring Boot Starter for Druid.

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Druid Spring Boot

Nutz Onekey
NUTZ一键脚手架
Stars: ✭ 92 (-69.84%)
Mutual labels:  druid, spring-boot
Mi S
基于SpringBoot+SpringCloud+Mybatis主流框架搭建的分布式敏捷开发系统架构,为中、小型项目打造企业级基础开发多种解决方案。
Stars: ✭ 140 (-54.1%)
Mutual labels:  druid, spring-boot
Nimrod
Nimrod - 基于 Spring Boot 构建 的 Java Web 平台企业级单体应用快速开发框架,适合中小型项目的应用和开发。所采用的技术栈包括 Spring Boot、Spring、Spring Web MVC、MyBatis、Thymeleaf 等,遵守阿里巴巴 Java 开发规约,帮助养成良好的编码习惯。整体采用 RBAC ( Role-Based Access Control ,基于角色的访问控制),具有严格的权限控制模块,支持系统与模块分离开发。最后希望这个项目能够对你有所帮助。Nimrod 开发交流群:547252502(QQ 群)
Stars: ✭ 125 (-59.02%)
Mutual labels:  druid, spring-boot
Dokit
基于 Spring Boot2、 Jpa、 Spring Security、JWT、redis、Vue的前后端分离的后台管理系统开发平台, 用户管理、菜单管理、角色管理、字典管理、权限控制的方式为RBAC,操作日志、异常日志、接口限流、项目支持数据权限管理,支持一键生成前后端代码(支持在线预览及打包下载),支持前端菜单动态路由 可一键部署服务器应用,数据库。系统中活跃用户状态监控,监视当前系统CPU、内存、磁盘、堆栈等相关信息,基于Element UI在线表单设计及生成Vue代码。
Stars: ✭ 348 (+14.1%)
Mutual labels:  druid, spring-boot
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 (-38.69%)
Mutual labels:  druid, spring-boot
Eshop Soa
EShop基于Dubbo实现SOA服务化拆分,并基于RocketMQ解决了分布式事务(新版SpringBootSOASkeleton)
Stars: ✭ 65 (-78.69%)
Mutual labels:  druid, spring-boot
Lovinghome Real Estate Platform
⚡️基于springboot+MyBatis+FreeMarker+redis+nginx+Echarts+druid等技术的JavaWeb项目------恋家房产平台(采用B/S架构,项目包含前后台,分为前台展示系统及后台管理系统。前台系统包含首页门户、登录注册、房产推荐、房产详情、热门房产、房产及小区搜索、经纪人列表及经纪机构创建、创建房产、房产百科、地图找房、用户个人中心、房产评论、房产打分等模块。 后台管理系统包含房产信息管理、用户管理、管理员管理、小区信息管理、博客管理、评论管理、经纪人管理、系统统计与多种图表展示、数据报表导入导出等模块。系统介绍及详细功能点、技术点见项目内文档描述)
Stars: ✭ 140 (-54.1%)
Mutual labels:  druid, spring-boot
Cas Client Autoconfig Support
Annotation-based configuration support for Apereo CAS Java clients
Stars: ✭ 153 (-49.84%)
Mutual labels:  spring-boot, spring-boot-starter
Spring Boot Sample
Spring-boot 集成druid数据库连接池,Spring-boot实现druid的动态数据源,Spring-boot实现定时任务schedule,spring-boot集成mybatis
Stars: ✭ 180 (-40.98%)
Mutual labels:  druid, spring-boot
Spring Boot Leaning
Spring Boot 2.X 最全课程代码
Stars: ✭ 2,008 (+558.36%)
Mutual labels:  druid, spring-boot
Hope Boot
🌱 Hope-Boot 一款现代化的脚手架项目
Stars: ✭ 3,241 (+962.62%)
Mutual labels:  druid, spring-boot
Layim
基于HTML5 WebSocket的一款IM即时通讯软件,使用Gradle集成了Scala、SpringBoot、Spring MVC、Mybatis、Redis等,前端使用了LayIm框架
Stars: ✭ 218 (-28.52%)
Mutual labels:  druid, spring-boot
Rocketmq Spring Boot Starter
rocketmq-spring-boot-starter
Stars: ✭ 178 (-41.64%)
Mutual labels:  spring-boot, spring-boot-starter
Maintain
springboot + springmvc +Spring Security + mybatis + PageHelper(Mybatis分页插件) + druid + (maven/gradle) + thymeleaf + bootstrap 组成的框架,基于Jersey, Swagger,SwaggerUi的restful API
Stars: ✭ 74 (-75.74%)
Mutual labels:  druid, spring-boot
Tutorial Soap Spring Boot Cxf
Tutorial how to create, test, deploy, monitor SOAP-Webservices using Spring Boot and Apache CXF
Stars: ✭ 167 (-45.25%)
Mutual labels:  spring-boot, spring-boot-starter
Spring Boot Quick
🌿 基于springboot的快速学习示例,整合自己遇到的开源框架,如:rabbitmq(延迟队列)、Kafka、jpa、redies、oauth2、swagger、jsp、docker、spring-batch、异常处理、日志输出、多模块开发、多环境打包、缓存cache、爬虫、jwt、GraphQL、dubbo、zookeeper和Async等等📌
Stars: ✭ 1,819 (+496.39%)
Mutual labels:  druid, spring-boot
Grpc Spring Boot Starter
Spring Boot starter module for gRPC framework.
Stars: ✭ 1,829 (+499.67%)
Mutual labels:  spring-boot, spring-boot-starter
Grpc Spring Boot Starter
Spring Boot starter module for gRPC framework.
Stars: ✭ 2,190 (+618.03%)
Mutual labels:  spring-boot, spring-boot-starter
Okhelper Service
OK帮 云进销存 (SpringBoot Restful 全家桶)
Stars: ✭ 146 (-52.13%)
Mutual labels:  druid, spring-boot
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 (-33.11%)
Mutual labels:  druid, spring-boot

Druid Spring Boot Starter

Build Status Coverage Status Maven Central GitHub Release License

Druid Spring Boot Starter 将帮助你在 Spring Boot 中使用 Druid。

依赖

<!-- spring boot 1.x -->
<dependency>
    <groupId>com.github.drtrang</groupId>
    <artifactId>druid-spring-boot-starter</artifactId>
    <version>1.1.10</version>
</dependency>
<dependency>
    <groupId>com.github.drtrang</groupId>
    <artifactId>druid-spring-boot-actuator-starter</artifactId>
    <version>1.1.10</version>
</dependency>

<!-- spring boot 2.x -->
<dependency>
    <groupId>com.github.drtrang</groupId>
    <artifactId>druid-spring-boot2-starter</artifactId>
    <version>1.1.10</version>
</dependency>
<dependency>
    <groupId>com.github.drtrang</groupId>
    <artifactId>druid-spring-boot2-actuator-starter</artifactId>
    <version>1.1.10</version>
</dependency>

意见征集

意见征集

NEW !

  1. 基于 Spring Boot 2 开发的全新 starter,与之前功能完全一致
  2. 改进多数据源的声明方式,由 Starter 自动发现配置并注册到 ApplicationContext,详情请查看 Druid 多数据源支持.md
  3. 新增全配置说明 druid.yml

配置

简单配置

在引入依赖的情况下,只需如下配置即可使用 Druid:

spring:
  datasource:
    url: jdbc:h2:mem:example
    username: root
    password: 123456

Druid 连接池

Druid Spring Boot Starter 会将以 spring.datasource.druid 为前缀的配置注入到 DruidDataSource,且 DruidDataSource 中的所有参数均可自定义。

spring:
  datasource:
    url: jdbc:h2:mem:example
    username: root
    password: 123456
    druid:
      max-wait: 30000
      query-timeout: 10
      validation-query: SELECT 1
      use-global-data-source-stat: true

Druid 高级特性

Druid Spring Boot Starter 添加了 Druid 的大部分特性,如 StatFilter、WallFilter、ConfigFilter、WebStatFilter 等,其中 StatFilter 默认打开,其它特性默认关闭,需要手动开启。

同样,每个特性的参数均可自定义,具体配置可以用 IDE 的自动提示功能或者阅读 Druid 的 Wiki 查看。

spring:
  datasource:
    druid:
      # 开启 StatFilter,默认开启,可通过 'enabled: false' 关闭
      stat:
        enabled: true
        log-slow-sql: true
        slow-sql-millis: 1000
      # 开启 Slf4jFilter
      slf4j:
        enabled: true
        data-source-log-enabled: false
        connection-log-enabled: false
        statement-log-enabled: false
        result-set-log-enabled: false
      # 开启 WallFilter
      wall:
        enabled: true
        log-violation: true
        throw-exception: false
        ## WallConfig 配置
        config:
          delete-where-none-check: true
      # 开启 ConfigFilter
      config:
        enabled: true
      # 开启 Web 监控
      web-stat:
        enabled: true
      # 开启 Aop 监控
      aop-stat:
        enabled: true
      # 开启监控页面
      stat-view-servlet:
        enabled: true

多数据源

1.1.2 版本改进了多数据源的声明方式,由 Starter 自动发现配置并注册到 ApplicationContext,详情请查看 Druid 多数据源支持.md

spring:
  datasource:
    druid:
      data-sources:
        master:
          url: jdbc:h2:file:./master
        slave:
          url: jdbc:h2:file:./slave

配置示例

application.yml

全配置说明

druid.yml

自动提示

Druid Spring Boot Starter 基于 spring-boot-configuration-processor 模块,支持 IDE 的自动提示。

自定义参数:
druid-configuration

参数说明: enabled

参数枚举值: db-type

演示

druid-spring-boot-example 中演示了 Druid Spring Boot Starter 的使用方式,可以作为参考。

Change Log

Release Notes

TODO

任何意见和建议可以提 ISSUE,我会酌情加到 TODO List,一般情况一周内迭代完毕。

About Me

QQ:349096849
Email:[email protected]
Blog:Trang's Blog

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