单独访问微服务 oauth2 可以正常访问, 但通过网关访问会出现没有权限,需要在网关模块增加如下设置 参考链接 https://blog.csdn.net/qq_37306234/article/details/85229829