2019-11-06 09:14

防火墙加个80->6666的转发就好了

2019-07-15 11:30

@chcode 更新了

2019-02-21 10:48

dependency的scope注掉

2019-02-21 10:43

@对呀 jdk5 开始要用sqljdbc4.jar

2019-02-20 09:15

@zhangtianxiao @JFinal 哈哈,都是高手

2019-01-08 14:21

@没牙的小朋友
undertow.txt文件使用配置
undertow.resourcePath=xxxxx/src/main/webapp
xxxxx是你子模块的文件夹name

2018-12-18 09:27

之前用过zcrud,不是很优雅,但是能快速使用,你试试看

2018-12-18 09:24

用switch吧,舒服点
String fileExtension = fileName.substring(fileName.lastIndexOf(".")+1);
switch (fileExtension.toLowerCase()) {
case "bmp":
return "image/bmp";
case "gif":
return "image/gif";
case "jpeg":
case "jpg":
case "png":
return "image/jpeg";
case "html":
return "text/html";
case "txt":
return "text/plain";
case "vsd":
return "application/vnd.visio";
case "ppt":
case "pptx":
return "application/vnd.ms-powerpoint";
case "doc":
case "docx":
return "application/msword";
case "xml":
return "text/xml";
default:
return "image/jpeg";
}

2018-12-13 16:08

用Interceptor试试呢,
inv.invoke()前记录进入时间/url/参数;
invoke后计算耗时/是否成功;
捕获异常

2018-12-13 12:15

3个项目前加个nginx分发吧,证书配到nginx

2018-12-07 16:14

对了,试试用sql模版管理下sql呢 http://www.jfinal.com/doc/5-13

2018-12-07 16:12

不用占位符,直接拼进去好了