<!-- 实现白名单的依赖>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-security</artifactId>
</dependency>
第一个类: 验证入口
/*
* Title: V100R001C00<br>
* Description: [描述模块的功能、作用、使用方法和注意事项]<br>
* Copyright: Copyright (c) 1988-2015<br>
* Company:
* @author
* @version
*/
package com.huawei.IpController.controller;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder;
import org.springframework.security.config.annotation.web.builders.H