1、新建WebMvcConfig类
2、添加注解@Configuration 实现WebMvcConfigurer
4、PlatformLoginInterceptor写自定义拦截方法
6、添加一个ErrorController