We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
@Lazy @Bean public SensitiveWordBs sensitiveWordBs(IWordAllow myWordAllow, IWordDeny myWordDeny) { return SensitiveWordBs.newInstance() .wordAllow(WordAllows.chains(WordAllows.defaults(), myWordAllow)) .wordDeny(WordDenys.chains(WordDenys.defaults(), myWordDeny)) .charIgnore(SensitiveWordCharIgnores.specialChars()) .init(); }
上方初始化后(已经调用数据库保存的敏感词),想要执行 wordReplace(WordReplaces.chars(symbol)) 方法,动态修改替换策略。 发现替换策略使用的是 final IWordReplace replace = context.wordReplace(); 获取的。然而 context 却要依赖 init() 方法初始化。
wordReplace(WordReplaces.chars(symbol))
final IWordReplace replace = context.wordReplace();
context
init()
那么意味着,不同的策略就要有多个引导类。这操作很反常!!!
The text was updated successfully, but these errors were encountered:
No branches or pull requests
上方初始化后(已经调用数据库保存的敏感词),想要执行
wordReplace(WordReplaces.chars(symbol))
方法,动态修改替换策略。发现替换策略使用的是
final IWordReplace replace = context.wordReplace();
获取的。然而context
却要依赖init()
方法初始化。那么意味着,不同的策略就要有多个引导类。这操作很反常!!!
The text was updated successfully, but these errors were encountered: