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

自定义注解策略类,加密类注入不了 #15

Open
voroq opened this issue Jan 18, 2022 · 1 comment
Open

自定义注解策略类,加密类注入不了 #15

voroq opened this issue Jan 18, 2022 · 1 comment

Comments

@voroq
Copy link

voroq commented Jan 18, 2022

请问,这种自定义策略类,想用StringEncryptor ,该怎么注入呢?
`
public class CustomPasswordStrategy implements IStrategy {
@Autowired
private StringEncryptor stringEncryptor;

@Override
public Object des(Object original, IContext context) {
    String encryptStr = stringEncryptor.decrypt(ObjectUtil.objectToString(original));
    return encryptStr;
}

}
`

@houbb
Copy link
Owner

houbb commented Jan 18, 2022 via email

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