2016-09-17 10:20
@JFinal
1. Db.query("select from ccc");// 用一个SQL语法错误触发就没有问题;
2. throw new MySQLSyntaxErrorException("skuid对应的商家商品不存在");//这样就有问题
2016-09-16 21:32
@JFinal Float price = Db.queryFloat("select retailPrice from store_stock where id=?",orderDetail.getSkuId());
if (price==null){
throw new SQLException("skuid对应的商家商品不存在");
};
报va.lang.Thread.run(Thread.java:745)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.jfinal.aop.Invocation.invoke(Invocation.java:73)
... 27 more
Caused by: java.sql.SQLException: skuid对应的商家商品不存在
at service.OrderService.orderCreate(OrderService.java:44)
at controller.OrderController.orderCreate(OrderController.java:18)
... 32 more
2016-09-13 16:53
@JFinal jfinal 2.2默认 json 实现暂不支持 json 到 object 的转换,建议使用 active recrord 的 Generator 生成 base model,再通过 me.setJsonFactory(new JacksonFactory()) 来支持},我想把一个json字符串转成model list,有办法吗?
2016-09-02 10:22
@JFinal 波总 * A clever person solves a problem.
* A wise person avoids it.
* A stupid person makes it. 什么意思?