方法一、添加系统环境变量
PAODING_DIC_HOME
指定一个绝对路径
方法二、修改paoding-analysis.jar包中的paoding-dic-home.properties文件(要先解压修改后再压缩回去)
#values are "system-env" or "this";
#if value is "this" , using the paoding.dic.home as dicHome if configed!
paoding.dic.home.config-fisrt=this
#dictionary home (directory)
#"classpath:xxx" means dictionary home is in classpath.
#e.g "classpath:dic" means dictionaries are in "classes/dic" directory or any other classpath directory
paoding.dic.home=classpath:dic
#seconds for dic modification detection
#paoding.dic.detector.interval=60
这里classpath:dic修改成了相对路径,即web application的src路径或java application的当前路径。
也可以使用绝对路径,支持windows和linux