|
@@ -5,6 +5,7 @@ import cn.hutool.poi.excel.sax.handler.RowHandler; |
|
@@ -5,6 +5,7 @@ import cn.hutool.poi.excel.sax.handler.RowHandler; |
|
5
|
import com.zhonglai.laikun.fortune.telling.dto.ManifestationDivinationInfo;
|
5
|
import com.zhonglai.laikun.fortune.telling.dto.ManifestationDivinationInfo;
|
|
6
|
import org.apache.commons.lang3.ArrayUtils;
|
6
|
import org.apache.commons.lang3.ArrayUtils;
|
|
7
|
|
7
|
|
|
|
|
8
|
+import java.io.File;
|
|
8
|
import java.util.HashMap;
|
9
|
import java.util.HashMap;
|
|
9
|
import java.util.List;
|
10
|
import java.util.List;
|
|
10
|
import java.util.Map;
|
11
|
import java.util.Map;
|
|
@@ -23,7 +24,9 @@ public class SysConfig { |
|
@@ -23,7 +24,9 @@ public class SysConfig { |
|
23
|
|
24
|
|
|
24
|
public static void initManifestationDivinationInfo()
|
25
|
public static void initManifestationDivinationInfo()
|
|
25
|
{
|
26
|
{
|
|
26
|
- ExcelUtil.readBySax("Yiching-database-CN-1.3.xlsx", 0, new RowHandler() {
|
27
|
+ String xmlpath = null==System.getProperty("xml-dbPath")?"Yiching-database-CN-1.3.xlsx":System.getProperty("xml-dbPath");
|
|
|
|
28
|
+ File file = new File(xmlpath);
|
|
|
|
29
|
+ ExcelUtil.readBySax(file, 0, new RowHandler() {
|
|
27
|
@Override
|
30
|
@Override
|
|
28
|
public void handle(int i, long l, List<Object> list) {
|
31
|
public void handle(int i, long l, List<Object> list) {
|
|
29
|
if(l>0)
|
32
|
if(l>0)
|