The point is that you shouldn't have to configure things like @Path because they can be inferred from the class name. Why not:
class Hello {
def get() {
"Hello, world!"
}
}
I would prefer to see this and then let someone have a routing config somewhere else if they want to move the /hello endpoint.