Should use Grails best-practise for config

The existing Grails documentation doesn't use best practise for defining
environments or Spring beans. This commit changes the documentation to show
better code samples.

[#75335616]