Spring-Boot: How do I set JDBC pool properties like maximum number of connections?

后端 未结 5 824
北荒
北荒 2020-11-28 02:26

Spring-Boot is a pretty awesome tool, but the documentation is a bit sparse when it comes to more advanced configuration. How can I set properties like the maximum size for

5条回答
  •  野性不改
    2020-11-28 03:07

    In spring boot 2.x you need to reference provider specific properties.

    https://docs.spring.io/spring-boot/docs/current/reference/html/boot-features-sql.html#boot-features-connect-to-production-database

    The default, hikari can be set with spring.datasource.hikari.maximum-pool-size.

提交回复
热议问题