zoukankan      html  css  js  c++  java
  • druid yml

    application-db.yml

    pagehelper:
      helperDialect:  mysql
      reasonable: true
      supportMethodsArguments:  true
      params: count=countSql
    
    spring:
      datasource:
        druid:
          url:  jdbc:mysql://localhost:3306/litemall?useUnicode=true&characterEncoding=UTF-8&serverTimezone=UTC&allowPublicKeyRetrieval=true&verifyServerCertificate=false&useSSL=false
          driver-class-name:  com.mysql.jdbc.Driver
          username:  litemall
          password:  litemall123456
          initial-size:  10
          max-active:  50
          min-idle:  10
          max-wait:  60000
          pool-prepared-statements:  true
          max-pool-prepared-statement-per-connection-size:  20
          validation-query:  SELECT 1 FROM DUAL
          test-on-borrow:  false
          test-on-return:  false
          test-while-idle:  true
          time-between-eviction-runs-millis:  60000
          filters:  stat,wall
                <!-- MySQL 连接驱动依赖 -->
                <dependency>
                    <groupId>mysql</groupId>
                    <artifactId>mysql-connector-java</artifactId>
                    <version>5.1.46</version>
                </dependency>
    
                <dependency>
                    <groupId>com.alibaba</groupId>
                    <artifactId>druid-spring-boot-starter</artifactId>
                    <version>1.1.10</version>
                </dependency>
  • 相关阅读:
    Java文件读取
    Java继承
    JAVA程序提示错误:需要class,interface或enum解决方法
    SQL 修改列名
    转 父表字表统计查询的sql练习
    powerdesigner12.5入门教程
    现实世界
    oracle添加联合主键
    hashtable的用法
    JQ 1
  • 原文地址:https://www.cnblogs.com/tonggc1668/p/11306260.html
Copyright © 2011-2022 走看看