04 2023 档案
摘要:java配置连接数据库数据源的时区与实际时区不一致: 页面查到的数据,比数据库的时间大7个小时,在数据源url后面加上下面的配置: &default-time_zone = '+8:00' 服务器获取时间入口后与实际时间相差8小时: 解决:在数据库连接里添加:serverTimezone=GMT%2
阅读全文
摘要:转自:https://blog.csdn.net/wts563540/article/details/108418454 1、JSON.parseObject和JSON.toJSONString JSON.parseObject,是将Json字符串转化为相应的对象;JSON.toJSONString
阅读全文
摘要:转自:https://blog.csdn.net/Mr_YanMingXin/article/details/122523124 1 RestTemplate简介在java代码里想要进行restful web client服务,一般使用Apache的HttpClient。不过此种方法使用起来太过繁琐
阅读全文
摘要:转自:https://office.tqzw.net.cn/computer/windows/28554.html windows10总是隔几分钟就自动开启代理,然后就无法打开网页。还有时候代理服务器开关没有自动打开,但是就是莫名其妙就无法上网上,打开只要代理服务器设置的页面,然后就又可以上网了。这
阅读全文
摘要://判断是否离线private Boolean isTOday(String time){ Date today = new Date(); SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd"); String format
阅读全文
摘要:1. Controller: /** * 通过id查询树列表 * @param id */@GetMapping("/listById")private Result listByParentId(String id) { String stationTelecode = getStation(ge
阅读全文
摘要:/** * 根据id查询树节点层级(0、1、2...) * @param id 主键id,code * @return 该树节点的层级 */ @Overridepublic Integer findLevelById(String id, String stationTelecode) { coun
阅读全文
摘要:1.Controller: /** * 区域树生成 */@GetMapping("/list")private Result regionTree() { Station station = getStation(getUser()); String stationCode = station.ge
阅读全文