2020-01-16 16:41
map类型特殊,我在注册时出现错误
code
ParaProcessorBuilder.me.regist(Map.class, MapGetter.class,null);
error
The method regist(Class, Class>, String) in the type ParaProcessorBuilder is not applicable for the arguments (Class, Class, null)
归根结底是
Map.class;不是正确的语法,错误提示如下
Syntax error, insert "AssignmentOperator Expression" to complete Expression
但是Integer.class是正确的语法
fastjson为了解决这个问题引入了TypeReference
2019-12-05 16:10
问题已经解决了
在开发环境下获取
URL resource = this.getClass().getClassLoader().getResource("bill-biaobei-tts-server/index.html");
在linux环境下获取
打包时打包到static目录下
```
${basedir}/src/main/resources/${artifactId}
static/${artifactId}
```
启动是传入./static
```
/usr/java/jdk1.8.0_211/bin/java -Xverify:none -cp ./config:./lib/*:./static com.uairobot.bill.biaobei.Application
```
在代码中获取和上面相同,然后在获取parent