File tree 1 file changed +2
-6
lines changed
encrypt-core/src/main/java/com/cxytiandi/encrypt/springboot/autoconfigure
1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -39,15 +39,11 @@ public class EncryptAutoConfiguration {
39
39
@ SuppressWarnings ({ "rawtypes" , "unchecked" })
40
40
@ Bean
41
41
public FilterRegistrationBean filterRegistration () {
42
- EncryptionConfig config = new EncryptionConfig ();
43
- config .setKey (encryptionConfig .getKey ());
44
- config .setRequestDecyptUriList (encryptionConfig .getRequestDecyptUriList ());
45
- config .setResponseEncryptUriList (encryptionConfig .getResponseEncryptUriList ());
46
42
FilterRegistrationBean registration = new FilterRegistrationBean ();
47
43
if (encryptAlgorithm != null ) {
48
- registration .setFilter (new EncryptionFilter (config , encryptAlgorithm ));
44
+ registration .setFilter (new EncryptionFilter (encryptionConfig , encryptAlgorithm ));
49
45
} else {
50
- registration .setFilter (new EncryptionFilter (config ));
46
+ registration .setFilter (new EncryptionFilter (encryptionConfig ));
51
47
}
52
48
registration .addUrlPatterns (encryptionConfig .getUrlPatterns ());
53
49
registration .setName ("EncryptionFilter" );
You can’t perform that action at this time.
0 commit comments