Advertisement
Guest User

Untitled

a guest
Jul 24th, 2016
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. // Place your Spring DSL code here
  2. beans = {
  3.  
  4. dataSource(com.alibaba.druid.pool.DruidDataSource) {
  5. url = "${grailsApplication.config.dataSource.url}"
  6. username = "${grailsApplication.config.dataSource.username}"
  7. password = "${grailsApplication.config.dataSource.password}"
  8. maxActive = "${grailsApplication.config.dataSource.maxActive ? grailsApplication.config.dataSource.maxActive : "2"}"
  9. filters = "stat"
  10. validationQuery = "select 1"
  11. }
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement