Grails : start the application without connecting to database

前端 未结 1 1501
别跟我提以往
别跟我提以往 2021-01-07 10:21

I have an application in grails, which i can the change the parameters in the welcome page, database configuration included (server, username, ...), i externalized the db co

相关标签:
1条回答
  • 2021-01-07 10:38

    I did a blog post along these lines a while back: http://burtbeckwith.com/blog/?p=312

    I'm not sure if it still works with 2.0, but it shouldn't require too much tweaking. By delaying the creation of the datasource, you can configure the connection properties of the DataSource bean or in the Grails config and after that the next connection request will use the new configuration.

    0 讨论(0)
提交回复
热议问题