This project demonstrates how to use Groovy bean definitions and inject them into a Spring MVC @Controller using Spring Boot.
This uses the spring-boot plugin for gradle which will build the application as an executable jar:
$gradle build
$java -jar build/libs/mvc-with-groovy-0.1.0.jar
Open your browser to http://localhost:8080