configure shiro security framework and add some class.