Cross Lee
Cross Lee
Job ``` public class BaiduTTSTokenJob { private Logger logger = L.get(BaiduTTSTokenJob.class); @Every("15d") public void tts(){ try { String s = HttpUtil.get('xxx'); if(S.empty(s)) { return; } JSONObject jsonObject = JSON.parseObject(s); String...
cityinfo.properties: ``` citypoi.121.487899486,31.24916171=上海-上海市 citypoi.100.092612914,23.8878061038=云南省-临沧市 citypoi.100.229628399,26.8753510895=云南省-丽江市 citypoi.99.1779956133,25.1204891962=云南省-保山市 ``` Java Code: ``` @Configuration("citypoi") private Map cityinfo; ... logger.debug(cityinfo.get("121.487899486,31.24916171")); ```
Act has provided @WsEndpoint for WebSocketController to avoid global listening. It's cumbersome to add every @WsEndpoint on my business WebSocket controller to avoid global listening. a global ws annotation(ie: @WsGlobal)...
act-starter-parent version : 1.8.28.0 response stream closed while render a null json object in controller. code: ```renderJson(null);``` error stack: ``` 2019-11-04 17:17:12,289 ERROR a.h.b.c.RequestHandlerProxy@[XNIO-1 task-3] - Server error encountered on...
Controller:  VO:  ERROR: 
Controller source code ```java @GetAction("/test") public void test() { String text = "123"; logger.debug("a=%s", text); render(text); } ``` Template source code: ```java @args String text @text ``` Page rendered: ...
nginx proxy pass the request to local actserver, and get error: 2018/12/04 16:30:08 [error] 3173#0: *3347 no live upstreams while connecting to upstream, client: 223.104.145.4, server: localhost, request: "GET /wap/index?stationId=12322&youqiangId=1&buStaffId=0...

render method with any args, console gives a warn msg: **2018-11-17 00:29:47,064 WARN a.c.b.HandlerEnhancer@[XNIO-1 task-4] - Invalid render argument found in cn.com.huiyongche.controller.weixin.WeixinPayController.oAuth2Callback: method with param is not supported** code: `render(pojo);`
entity: ```java public class JiayouOrderTestEntity extends BaseModel implements SimpleBean { public String name; } ``` BaseModel: ```java import io.ebean.Model; import javax.persistence.Id; import javax.persistence.MappedSuperclass; @MappedSuperclass public abstract class BaseModel extends Model{...