解决: 我的问题是我电脑的ip换了,所以把以下配置的IP地址换成最新的即可。 spring.security.oauth2.resourceserver.jwt.jwk-set-uri:http://ip地址:9099/auth2/rsa/publicKey