libingqing 发表于 2019-5-10 14:20:56

控制台报错,模板系列化问题。怎么改?

java.io.NotSerializableException: freemarker.template.Template
      at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1180)
      at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:346)
      at org.jeecgframework.web.system.service.impl.RedisCacheService.serialize(RedisCacheService.java:76)
      at org.jeecgframework.web.system.service.impl.RedisCacheService.put(RedisCacheService.java:38)
      at org.jeecgframework.web.cgform.engine.TempletContext.getTemplateFromCache(TempletContext.java:107)
      at org.jeecgframework.web.cgform.engine.TempletContext.getTemplate(TempletContext.java:80)
      at org.jeecgframework.web.cgform.controller.build.CgFormBuildController.getTableTemplate(CgFormBuildController.java:417)
      at org.jeecgframework.web.cgform.controller.build.CgFormBuildController.ftlForm(CgFormBuildController.java:368)
      at org.jeecgframework.web.cgform.controller.build.CgFormBuildController.goAdd(CgFormBuildController.java:79)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:601)
      at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:221)
      at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:137)

页: [1]
查看完整版本: 控制台报错,模板系列化问题。怎么改?