摘要: 注意Integer类型如果是0的话,等价于空字符串,所以需要添加0值判断 <if test="query.status != null and query.status !='' or query.status == 0"> AND sdr.STATUS=#{query.status} </if> 阅读全文
posted @ 2021-07-30 16:09 有点儿放松 阅读(401) 评论(0) 推荐(0)
摘要: 主要是eureka监听存在难点` /** * 服务下线事件 * @param event */ @EventListener(condition = "#event.replication == false") public void listen(EurekaInstanceCanceledEve 阅读全文
posted @ 2021-07-16 17:24 有点儿放松 阅读(175) 评论(0) 推荐(0)
摘要: //主要通过 cmd命令 reg query 来获取注册表位置以及java的Runtime.getRuntime().exec()方法运行cmd语句,然后用流读取数据 public static String getMysqlPathByRegedit(){ String commond = "re 阅读全文
posted @ 2019-05-31 17:01 有点儿放松 阅读(203) 评论(0) 推荐(0)