-
Notifications
You must be signed in to change notification settings - Fork 479
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
指定一个词不是敏感词,但是WordDenys.system()包含该敏感词,导致我这边敏感词校验还是认为这是敏感词 #22
Comments
看下这个回复吧,这也太坑了!#20 |
|
我和一样,通过spring 注入的就是不行,按正常来说应该是属于一个bean,但是它死活就是不行 |
你去看下我刚刚上传的sensitive-word-admin这个demo吧,好像是可以,估计是我前面敏感词设置的不对,比如我设置的"安门"未非敏感词,但是打"天安门"这三个字会匹配未敏感词 |
spring 整合可以阅读下: |
已经ok了,thank you |
你确定你的代码可以,没有问题?下面是我的代码,但是一样的还是不行,永远返回false!
|
你拉下我的demo来跑下,数据库连接改下,脚本也在里面 https://github.com/AlanFin/sensitive-word-admin.git |
代码本身只是最基本的对象创建,和 spring 关系不大。
看一下是不是使用问题
发自我的iPhone
…------------------ 原始邮件 ------------------
发件人: join001 ***@***.***>
发送时间: 2022年7月27日 15:02
收件人: houbb/sensitive-word ***@***.***>
抄送: 老马啸西风 ***@***.***>, Comment ***@***.***>
主题: Re: [houbb/sensitive-word] 指定一个词不是敏感词,但是WordDenys.system()包含该敏感词,导致我这边敏感词校验还是认为这是敏感词 (Issue #22)
***@***.***注入才行,构造函数注入就不行!这作者要改进下,应该是上下文获取方式不太对!
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
|
找到问题,是因为没有引入数据库实现!具体修改的代码如下
|
@houbb 源代码文件SensitiveWordMap.java文件中的System.out.println能否去掉啊? |
The text was updated successfully, but these errors were encountered: