zoukankan      html  css  js  c++  java
  • Spring Boot如何使用HikariCP连接池详解

    参考:https://www.jb51.net/article/157642.htm

    https://www.cnblogs.com/yydxxg/p/14995554.html

    https://blog.csdn.net/john1337/article/details/105481143/

    https://blog.csdn.net/hzbooks/article/details/108215836

    https://lequ7.com/guan-yu-javahikari-lian-jie-chi-shi-yong-springboot-pei-zhi-jmx-jian-kong.html

    实例:

    在springBoot applicationBootstrap 加注解:

    @ConfigurationProperties(prefix = "spring.datasource.hikari")


    application.yaml加:
    spring:
    datasource:
    hikari:
    auto-commit: false
    transaction-isolation: TRANSACTION_READ_COMMITTED
    maximum-pool-size: 200

    management:
    endpoint:
    prometheus:
    enabled: true
    endpoints:
    web:
    exposure:
    include: health,info,metrics,prometheus,offline

    访问: http://localhost:18000/actuator/prometheus

  • 相关阅读:
    hdu5081
    hdu5079
    hdu5076
    hdu5072
    codeforces 739E
    codeforces 739D
    2017.2其他简要题解
    spring事务传播回滚策略
    mybatis一级缓存和二级缓存
    spring-boot-mybatis-starter工作原理
  • 原文地址:https://www.cnblogs.com/maohuidong/p/15412082.html
Copyright © 2011-2022 走看看