• 项目的熟悉


    今天是继续熟悉项目,总算把项目的数据库连接这块看懂了,连接项目的信息放在jdbc.property 里

    jdbc.dataBase=mysql                                        //连接的数据库
    jdbc.driver=com.mysql.jdbc.Driver                          //连接的数据驱动
    jdbc.url=jdbc:mysql://ziliao:3306/db_trainmanage?useUnicode=true&characterEncoding=UTF-8  //连接的地址
    jdbc.username=root                                      //连接的用户名
    jdbc.password=root                                      //连接的密码
    
    
    # Time to wait for an open connection before timing out
    # (in milliseconds)
    pool.checkoutTimeout=10000
    
    # Connection pool size
    pool.minPoolSize=5
    pool.maxPoolSize=50
    
    # How long to keep unused connections around(in seconds)
    # Note: MySQL times out idle connections after 8 hours(28,800 seconds)
    # so ensure this value is below MySQL idle timeout
    pool.maxIdleTime=25200
    
    # How long to hang on to excess unused connections after traffic spike
    # (in seconds)
    pool.maxIdleTimeExcessConnections=1800
    
    # Acquiring new connections is slow, so eagerly retrieve extra connections
    # when current pool size is reached
    pool.acquireIncrement=5
  • 相关阅读:
    熟悉常用的Linux操作
    组合数据类型练习
    简易的词法分析程序
    大数据概述
    201552040205 关于对java的体验与感悟
    对已学习的java内容的一些感悟
    关于java中的一些小技巧
    Javase 大纲2
    Javase大纲
    MysQL知识整理
  • 原文地址:https://www.cnblogs.com/zouxiaofan/p/6575036.html
Copyright © 2020-2023  润新知