As we all know the default port for grails application is 8080, though we can change the port by running the application by following command
grails -Dserver.port=7070 run-app
What if you want the application to run on 7070 by default. Grails provide a very easy way to that as well. You just need to write the following lines in you buildConfig.groovy file
And you are done. Now your application will run on 7070 by default, you dont need to provide the port again and again.