首页 > 解决方案 > 硬编码值或外部属性优先于数据库池大小?

问题描述

我的 springboot 代码中有以下配置:

xaDataSource.setMaxPoolSize(50);

我在 application.properties 中也有这个

data-source.reference.maximumPoolSize=15

哪一个占上风?

标签: springdatabasespring-boot

解决方案


推荐阅读