@Bean
    public AuthenticationManager authenticationManager(AuthenticationConfiguration authenticationConfiguration)
            throws Exception {
        return authenticationConfiguration.getAuthenticationManager();
    }
authenticationManager

@param authenticationConfiguration authenticationConfiguration
@return AuthenticationManager
@throws Exception Exception
src/main/java/com/tuituidan/openhub/config/SecurityConfig.java