2018-07-14 14:39
@童年 仔细阅读文档: http://www.jfinal.com/doc/5-3
dao对象是全局共享的,只能用于数据库查询,不能用于数据承载对象。数据承载需要使用new User().set(…)来实现。
2018-06-20 10:03
@饿了吃口葫芦肉 "img原样" 是什么意思 ? 例子代码我测试过, 没有问题,
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>test-barcode</title>
</head>
<body>
<img src="/test/barcode/jfinal-20170801">
</body>
</html>
/**
* /test/barcode/jfinal-20170801
*/
public class BarcodeController extends Controller {
public void index(){
render(new BarcodeRender(getPara()));
}
}
2018-06-13 17:37
@maxwade HttpKit.post("http://www.baidu.com", "?a=1&b=2&c=3")
何不写个 main方法试试了~
2018-06-13 17:26
@maxwade 二种:
可以直接放 Json字符串啊, 一般这样:
HttpKit.post(url, JsonKit.toJson(map))