springboot的application.properties配置文件的JDBC的相关配置.
spring.datasource.name=数据源的名称。
spring.datasource.type=连接池类型
spring.datasource.driver-class-name=com.mysql.jdbc.Driver。JDBC 驱动的全限定类名。默认根据 URL 自动检测。
spring.datasource.url=数据库的 JDBC URL。jdbc:mysql://host/test?useUnicode=true&characterEncoding=utf8
spring.datasource.username=数据库的登录用户名。
spring.datasource.password=数据库的登录密码。
spring.datasource.pool-name=连接池名称。
spring.datasource.max-active=连接池中的最大活跃连接数。
spring.datasource.connection-timeout=连接超时(单位毫秒)
spring.datasource.max-age=连接池中连接的最长寿命。
spring.datasource.max-idle=连接池中的最大空闲连接数。
spring.datasource.max-lifetime=连接池中连接的最长寿命(单位为毫秒)。
spring.datasource.max-open-prepared-statements=开启状态的 PreparedStatement 的数量上限。
spring.datasource.max-wait 连接池在等待返回连接时,最长等待多少毫秒再抛出异常。
spring.datasource.ma