class UrlMappings {  
      static mappings = {  
           "/${screenName}" (controller: 'profile', action: 'profile')  
      }  
 }  
So here is the solution:
 class UrlMappings {  
      static mappings = {  
           "/${screenName}" {  
                controller = 'profile'  
                action = 'profile'  
                constraints { screenName(notEqual: 'dbconsole') }}  
      }  
 }  
 
Thanks for this useful information.
ReplyDeleteLevel Controller