Created
July 25, 2016 03:22
-
-
Save cofemei/a6137198ed33a8cf87c68eaf32a7ca23 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Place your Spring DSL code here | |
beans = { | |
dataSource(com.alibaba.druid.pool.DruidDataSource) { | |
url = "${grailsApplication.config.dataSource.url}" | |
username = "${grailsApplication.config.dataSource.username}" | |
password = "${grailsApplication.config.dataSource.password}" | |
maxActive = "${grailsApplication.config.dataSource.maxActive ? grailsApplication.config.dataSource.maxActive : "2"}" | |
filters = "stat" | |
validationQuery = "select 1" | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment