Last updated by
1 year ago
Page: 2.0.0.M1 Release Notes, Version:0
Grails 2.0.M1 Release Notes
Grails is a dynamic web application framework built on Java and Groovy, leveraging best of breed APIs from the Java EE sphere including Spring, Hibernate and SiteMesh. Grails brings to Java and Groovy developers the joys of convention-based rapid development while allowing them to leverage their existing knowledge and capitalize on the proven and performant APIs Java developers have been using for years.Grails 2.0.M1 has not been released. This page is a placeholder.
New Features & Improvements
- Changelog: (TBD)
- Download: http://grails.org/Download .
- Documentation: (TBD)
New Features & Improvements
Specify Layouts with the render method
You can now specify a layout to render via the render method:render text:"Hello World", layout:"main"
Improved Log4J Configuration
Multiple Log4J configuration closures may be defined which allows for configurations like this:// Config.groovygrails.config.locations = ['file:external-config.groovy']log4j.main = {
// main L4J configuration here
}// external-config.groovylog4j.external = {
// common configuration
}environments {
development {
log4j.env = {
// environment-specific config
}
}
production {
log4j.env = {
// environment-specific config
}
}
}Command Object Constraints
Command object properties are now not-nullable by default.Multiple datasources support
The feature set of the Datasources plugin has been merged into the core, so you can now configure multiple datasources inDataSource.groovy and easily configure which datasource each domain class uses. In addition, by installing the Atomikos plugin (not yet released, but will be in time for 2.0 final) you can easily convert regular datasources to XA datasources to support two-phase commit between datasources, JMS, and any other XA-compatible resource.