2019-07-05 16:29
@Clear
@Before(POST.class)
public void index() {
HttpServletResponse response = getResponse();
response.setHeader("Access-Control-Allow-Origin", "*");
response.setHeader("Access-Control-Allow-Methods", "POST, GET");
response.setHeader("Access-Control-Max-Age", "3600");
response.setHeader("Access-Control-Allow-Headers",
"Content-Type, Access-Control-Allow-Headers, Authorization, X-Requested-With");
//接收参数
AdminUser au = getBean(AdminUser.class, "");
2017-09-18 14:50
当小程序登陆的时候,报下面的错误,我在configConstant 方法中增加 了 me.setJsonFactory(new JacksonFactory()); 还是不可以,需要 怎么设置呢?
[com.jfinal.core.ActionHandler.handle()]: /wxa/login?code=071faz4k0v9xu42pab5k0yho4k0faz4w
java.lang.RuntimeException: java.lang.RuntimeException: jfinal 3.2默认 json 实现暂不支持 json 到 object 的转换,建议使用 active recrord 的 Generator 生成 base model,再通过 me.setJsonFactory(new MixedJsonFactory()) 来支持