Skip to content

Instantly share code, notes, and snippets.

@cofemei
Created July 25, 2016 03:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cofemei/a6137198ed33a8cf87c68eaf32a7ca23 to your computer and use it in GitHub Desktop.
Save cofemei/a6137198ed33a8cf87c68eaf32a7ca23 to your computer and use it in GitHub Desktop.
// 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