我通过这种方法收到此错误:
@Bean
public JwtAccessTokenConverter accessTokenConverter() {
JwtAccessTokenConverter converter = new JwtAccessTokenConverter();
Resource resource = new ClassPathResource("publickey.txt");
String publicKey = null;
try {
publicKey = IOUtils.toString(resource.getInputStream());
} catch (final IOException e) {
throw new RuntimeException(e);
}
converter.setSigningKey(publicKey);
converter.setVerifierKey(publicKey);
return converter;
}
有人对此错误有解决方案吗?