LXY个人生活分享网 Hello, welcome to my personal life world!

springboot datasource 配置说明

datasource
spring.dao.exceptiontranslation.enabled
是否开启PersistenceExceptionTranslationPostProcessor,默认为true

spring.datasource.abandon-when-percentage-full
设定超时被废弃的连接占到多少比例时要被关闭或上报