Log(转移)
2019-04-24 16:07:22 0 举报
mybatis+json+post 设计框架
作者其他创作
大纲/内容
<mapper namespace>
+ XServiceInfo
+ String companyId = \"\";+ String companyName = \"\";+ String mechineId = \"\";+ BigDecimal reqduring = new BigDecimal(\"0\");
继承
HTTP POST+GET方法请求
HTTPSClient
+ init():+SSLSocketFactory socketFactory;+ prepareCertificate();
mapper/SysTrack.xml
MyBatis
MainRest2+dwsJson() dws->Json+getlogin2JsonAuthor() 登录接口,得到 授权码
log4j2.xml
update和select处理
<interface>SysTrackMapper+ int countAll();+ List<DwService> selectByNumber();+ int updateThundreds();
conf.xml
enviroment配置+Log4j配置
GenSql
+ getInstance() 获得conf设置用例- getSession(String environment)设置连接 - closeSessions() 关闭所有连接
原错误:日志表每时刻都在更新排guid 会使得 select和update不同步(类似多线程的状态问题——get和set对应的数据没同步,导致 反复set 和 get漏掉)如果按照时间asc排因为过去的数据不会变动,所以只会在最新的数据点出现略微偏差
XService
+ String source = \"\";+ String userId = \"\";+ String target = \"\";+ String operatetime = null;+ String connectMethod = \"3\";+ String contlen = \"0\";
对象
CustomLevels、Appenders、Loggers
原: select使用top <=200update同样,两者对guid+'N'排序
现:select使用top<=200,update in (select后的guid)
HTTPSClientUtil
0 条评论
下一页