Blog
Google API with Grails
6 Jul, 17

Google API with Grails

Creating a Google API Console project and client ID     Before you can integrate Google Sign-In into your website, you must have a Google API Console project. In the project, you create a client ID, which you need to call the sign-in API. To create a Google...
Spring annotation in Grails 3
24 May, 16

Spring annotation in Grails 3

I was recently working on a grails project and found that it is possible to read the configuration/properties defined in application.yml using spring annotation in Grails 3. Its possible in Grails 3 because it uses Spring boot under the hood. Here is an example:...
Handle session timeout in Ajax request
5 Jan, 16

Handle session timeout in Ajax request

Recently, I was working on a grails application in which I wanted to handle session timeout when ajax request was fired. When session expires in case of normal request, the browser redirects to login page which is handled by spring security.   In case of...