项目的熟悉
今天是继续熟悉项目,总算把项目的数据库连接这块看懂了,连接项目的信息放在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