原创 redis報DENIED Redis is running in protected mode because protected mode is enabled

是說Redis服務處於保護模式,我們需要修改配置文件redis.conf。將NETWORK下的protected-mode yes修改 爲protected-mode no,然後重啓服務(./bin/redis-server ./redi

原创 springcloud不同服務器註冊的服務互相訪問,配置實例ip

feign.RetryableException: Connection refused (Connection refused)     instance: instance-id: ${spring.application.na

原创 項目測試

項目測試從手動還是自動分類:大部分項目採用手動測試和自動化測試相結合的方式 測試名稱 測試內容 Manual Test 手動測試 測試人員用鼠標去手動測試 (測試GUI) Automation 自動化測試 用程序測試

原创 Gradle

Gradle用於自動化進行編譯、單元測試和打包等工作構建工具

原创 Git 設置多個賬號

  清除原有全局設置 這步不是必須的,如果你沒有使用   git config --global user.name 'xxxxx' git config --global user.email 'xxxx' 設置過全局用戶名

原创 BigDecimal

Java在java.math包中提供的API類BigDecimal,用來對超過16位有效位的數進行精確的運算 雙精度浮點型變量double可以處理16位有效數 一般情況下,對於那些不需要準確計算精度的數字,我們可以直接使用Float和Do

原创 服務間調用返回報錯

Load balancer does not have available server for client   原因:調用的模塊的服務發現開關被我設置成了false eureka: client: registerWit

原创 UUID

UUID (Universally Unique Identifier)通用唯一識別碼,是一種軟件建構的標準. UUID是基於當前時間、計數器(counter)和硬件標識(通常爲無線網卡的MAC地址)等數據計算生成的 其格式爲:xxxxx

原创 idea 新增的文件使用git不能add

原因是:git 配置了本地的gitignore的文件 問題解決 首先我們可以通過命令查看全局配置中是否有調用外部(非工程下)的gitignore文件 git config -l 1 例如core.excluedesfile=這一項 如果發

原创 springcloud Zuul丟失Cookie的解決方案

zuul:   routes:     yyxt:       path: /**       serviceId: com.modou.dpt       sensitive-headers:        custom-sensiti

原创 String.format("%0"+length+"d", arr)中的%0和"d"分別代表什麼

public static void main(String[] args) { int a = 8; String s = String.format("%04d", a);

原创 crontab的使用

1.crontab -l  //查看定時任務 2.crontab -e //編輯定時任務 3. 看日誌 1. linux 看 /var/log/cron.log這個文件就可以,可以用tail -f /var/log/cron.log觀察

原创 非controller,非service注入

系統爲SpringMVC框架,在開發的過程中有一些工具類需要調用下由spring管理的service層。   @Component     //申明爲spring組件 public class TestUtils {      @Aut

原创 忽略jackson默認首字母轉小寫

在類上添加一下註解即可 @JsonAutoDetect(fieldVisibility=JsonAutoDetect.Visibility.ANY, getterVisibility=JsonAutoDetect.Visibility.N

原创 Centos7下Rinetd安裝與應用

安裝篇 1、下載,解壓,安裝 [root@zhenyunode zhenyutest]# cd ~/zhenyutest/ [root@zhenyunode zhenyutest]# wget http://www.boutell.com