Closed echokk11 closed 5 years ago
EncryptAutoConfiguration中漏了一行,我提一个PQ吧
@Bean
public FilterRegistrationBean filterRegistration() {
EncryptionConfig config = new EncryptionConfig();
config.setKey(encryptionConfig.getKey());
config.setRequestDecyptUriList(encryptionConfig.getRequestDecyptUriList());
config.setResponseEncryptUriList(encryptionConfig.getResponseEncryptUriList());
config.setDebug(encryptionConfig.isDebug()); // miss this line
FilterRegistrationBean registration = new FilterRegistrationBean();
registration.setFilter(new EncryptionFilter(config));
registration.addUrlPatterns(encryptionConfig.getUrlPatterns());
registration.setName("EncryptionFilter");
registration.setOrder(encryptionConfig.getOrder());
return registration;
}
BTW:没明白这里为啥要重新new一个对象
这边是有点问题,我已经改了 1.1.5版本