Search⌘ K
AI Features

Introduction

Explore the Grails framework, its conventions, and its role in the Java ecosystem. Understand how to create and manage Grails applications, including domain classes, controllers, and plugins, to build efficient Groovy-based web apps.

What is Grails?

Grails is a web-framework for Groovy that follows the example of Ruby on Rails to be an opinionated web framework with a command-line tool that gets things done really fast. Grails uses convention over configuration to reduce configuration overhead.

Grails lives firmly in the Java ecosystem and is built on top of technologies like Spring and Hibernate. Grails also includes an Object-Relational-Mapping (ORM) framework called GORM and has a large collection of plugins.

Different versions of Grails can be very different, so care needs to be taken when upgrading your Grails application especially with major versions (2.4 to 3.0 for example).

Quick overview of Grails

After installing Grails, you can create an app by running the following on the command-line: ...