grails - Datasource avanced properties -
i wondering valid datasource configuration:
development { properties { maxactive = 50 maxidle = 25 minidle = 5 initialsize = 8 minevictableidletimemillis = 1000 * 15 * 60 timebetweenevictionrunsmillis = 1000 * 15 * 60 maxwait = 10000 validationquery = "/* ping */" } datasource { username = "test" password = "test" dbcreate = "update" // 1 of 'create', 'create-drop', 'update', 'validate', '' url = "jdbc:mysql://params" } }
if have this, datasource use properties listed above?
if want centralize properties, can define datasource without enviornment first:
datasource { properties { } } development { datasource { } }
Comments
Post a Comment