voroq

Results 1 issues of voroq

请问,这种自定义策略类,想用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; } } `