yinjihuan / monkey-api-encrypt

monkey-api-encrypt是对基于Servlet的Web框架API请求进行统一加解密操作
Apache License 2.0
792 stars 347 forks source link

1.2.2RELEASE版本自定义加密算法 删除了EncryptionFilter(EncryptionConfig , EncryptAlgorithm )构造 #76

Open liuxianyi opened 3 years ago

liuxianyi commented 3 years ago

在1.2.2RELEASE中只提供了

public EncryptionFilter(EncryptionConfig config, EncryptAlgorithm encryptAlgorithm, DispatcherServlet dispatcherServlet) {
        this.encryptionConfig = config;
        this.encryptAlgorithm = encryptAlgorithm;
        this.dispatcherServlet = dispatcherServlet;
    }

而没有提供

 public EncryptionFilter(EncryptionConfig config, EncryptAlgorithm encryptAlgorithm) {
        this.encryptionConfig = config;
        this.encryptAlgorithm = encryptAlgorithm;
    }

请问如果使用1.2.2RELEASE的话 ,DispatcherServlet实例如何获取?

yinjihuan commented 2 years ago

Springboot方式使用,会自动注入的,这个是重载的,可以不指定。或者直接注入 /**