refactor oauth2 sample spring config files