modify spring configuration for shiro