【发布时间】:2016-05-28 21:25:15
【问题描述】:
使用tomcat 连接池使用spring-boot 的postgres 数据库上的最大连接数的默认值是多少?
有一个属性spring.datasource.maxActive,但是当我尝试对其进行系统输出时,我遇到了一个异常:
@Value("${spring.datasource.maxActive}")
private String act;
java.lang.IllegalArgumentException: Could not resolve placeholder 'spring.datasource.maxActive' in string value "${spring.datasource.maxActive}
【问题讨论】:
-
安装执行器并检查那里的值
标签: java spring postgresql tomcat spring-boot