Upgrading spring security and configs