原创 mysql 修改時區
數據庫執行 show variables like "%time_zone%"; 發現數據庫時間和本地時間不一樣,可能mysql啓動時的docker命令不對, 解決方案 > set global time_zone = '+8:00
原创 Compilation failure: Compilation failure:
提示找不到符號 docker 部署項目多模塊,基礎模塊修改後需要在目錄下執行 mvn install 打包到本地
原创 springcloud hystrix+ribbon 的Timeout配置
hystrix: command: default: execution: timeout: enabled: true isolation:
原创 no String-argument constructor/factory method to deserialize from String val
https://blog.csdn.net/qq_30162239/article/details/86647164 解決辦法:增加一個構造函數來手動賦值 public SubmitParam(String json) throws
原创 docker搭建elk
最近在linux上搭建了個elk日誌分析系統,記錄一下。 參考文章:https://zhuanlan.zhihu.com/p/32559371 版本鏡像:https://www.docker.elastic.co/ 安裝docker版本E
原创 springboot快速接入七牛雲返回token
首先引入依賴: <dependency> <groupId>com.qiniu</groupId> <artifactId>happy-dns-java</artifactId> <version>0.1.4</
原创 redis.conf配置文件詳細介紹
參數說明redis.conf 配置項說明如下:1. Redis默認不是以守護進程的方式運行,可以通過該配置項修改,使用yes啓用守護進程 daemonize no2. 當Redis以守護進程方式運行時,R
原创 JedisPool配置總結
JedisPool的配置參數大部分是由JedisPoolConfig的對應項來賦值的。maxActive:控制一個pool可分配多少個jedis實例,通過pool.getResource()來獲取;如果賦值
原创 通過谷歌地圖api 獲得地圖json信息
public static String getURLContent(String urlStr){ //請求的url URL url = null;
原创 通過經緯度獲取完整的國、省、市、地區、街道
String str = "http://maps.google.cn/maps/api/geocode/json?latlng=" + jingwei[0] + "," + jingwei[1]+"&language=CN";//谷歌a