Grails
Grails is a full-stack web application framework for the JVM, written in Groovy and built on Spring Boot, that emphasizes convention over configuration in the style of Ruby on Rails.
Definition
Grails is a full-stack web application framework for the JVM, written in Groovy and built on Spring Boot, that emphasizes convention over configuration in the style of Ruby on Rails.
Overview
Grails brought the "convention over configuration" philosophy popularized by Ruby on Rails to the JVM ecosystem. Instead of extensive manual wiring, Grails infers behavior from naming conventions and project structure, letting developers get a working application scaffolded quickly with sensible defaults they can override when needed. Under the hood, Grails is built on top of Spring Boot and uses GORM (Grails Object Relational Mapping), which is commonly backed by Hibernate, for database access. Because it runs on the JVM, Grails applications can freely mix Groovy and Java code and reuse the wider Java ecosystem's libraries. Grails is used less commonly for new projects today than it was during its earlier growth period, as many teams building JVM web applications now reach directly for Spring Boot or use Kotlin frameworks, but it remains actively maintained and used in existing enterprise systems that value its dynamic, convention-driven approach on the JVM.
Key Features
- Convention-over-configuration application scaffolding, inspired by Rails
- Built on top of Spring Boot for dependency injection and configuration
- GORM object-relational mapping, typically backed by Hibernate
- Groovy language support with full interoperability with Java
- Plugin system for extending core framework functionality
- Dynamic scaffolding for rapid CRUD interface generation