Have to import:
import org.springframework.web.context.request.RequestContextHolder
and use following:
def params = RequestContextHolder.getRequestAttributes().params
import org.springframework.web.context.request.RequestContextHolder
and use following:
def params = RequestContextHolder.getRequestAttributes().params