问题描述
我需要有关此文档的帮助 https://primefaces.github.io/primefaces/7_0/#/components/fileupload
在部分 实施框架
public class CustomVirusScanner implements org.primefaces.virusscan.VirusScanner {
@Override
public boolean isEnabled() {
// maybe read some config here
return true;
}
@Override
public void performVirusScan(InputStream inputStream) throws VirusException {
// call the virus scanner's API here
if (virusDetected) {
throw new VirusException();
}
}
}
服务提供商注册:要注册服务提供商,只需在JAR文件内的meta-inf / services目录中放置一个名为org.primefaces.virusscan.VirusScanner的文件即可:
com.example.CustomVirusScanner
我不知道如何在Maven proyect中做
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)