You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
------------------ 原始邮件 ------------------
发件人: voroq ***@***.***>
发送时间: 2022年1月18日 11:37
收件人: houbb/sensitive ***@***.***>
抄送: Subscribed ***@***.***>
主题: Re: [houbb/sensitive] 自定义注解策略类,加密类注入不了 (Issue #15)
请问,这种自定义策略类,想用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; }
}`
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
请问,这种自定义策略类,想用StringEncryptor ,该怎么注入呢?
`
public class CustomPasswordStrategy implements IStrategy {
@Autowired
private StringEncryptor stringEncryptor;
}
`
The text was updated successfully, but these errors were encountered: