Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
liuxianyi opened this issue Aug 12, 2021 · 1 comment

Comments

@liuxianyi
Copy link

在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
Copy link
Owner

Springboot方式使用,会自动注入的,这个是重载的,可以不指定。或者直接注入
/**
* 用于解决@PathVariable风格的URI
*/
@Autowired(required = false)
private DispatcherServlet dispatcherServlet;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants