原创 vuecli 使用webpack打包

https://www.jianshu.com/p/04f99bd56ad0

原创 第四章 spring cloud feign(ribbon+hystrix)

1.ribbon 客戶端負載均衡,從服務中心獲取服務列表,按照負載均衡策略進行負載均衡 2.hystrix 熔斷機制,如超時、信號量佔滿、線程池佔滿、網絡異常等,服務降級,無需等待響應,直接返回結果,避免故障蔓延 3.feign=ribb

原创 kafka生產者,消費者

問題1:telnet ip 9092端口不通,控制檯錯誤: [AdminClient clientId=adminclient-1] Connection to node -1 (/172.16.2.6:9092) could not b

原创 第二章 spring cloud基於spring boot開發

第二章 spring boot 1.starter PMOs,採用spring-boot-starter-*的命名方式 2.可以融入Docker,支持嵌入容器tomcat、jetty 3.@Value(“${}”)讀取配置文件參數,pl

原创 vue this.$refs input 獲取焦點

  1.html <script src="//unpkg.com/vue/dist/vue.js"></script> <script src="//unpkg.com/[email protected]/lib/index.js"><

原创 spring boot 外部依賴包 打包

<build> <finalName>mis_baoxiao_service</finalName> <resources> <resource> <directory>${project.basedir}/src/

原创 nodejs安裝、npm安裝

nodejs安裝 1.下載安裝包: https://nodejs.org/en/ 2.安裝完成,輸入node,進入交互式命令窗口。   npm安裝 1.安裝完nodejs在cmd命令窗口輸入npm -v,可查看npm版本; 2.安裝npm

原创 spring cloud 啓動相關

1.linux 啓動zuul nohup java -jar XXXX.jar >zuulLog.txt & 2.vi /etc/hosts # Do not remove the following line, or various p

原创 mysql 使用source恢復數據庫卡住

show full PROCESSLIST; 顯示query end; 問題原因:數據庫所在磁盤空間滿了。

原创 註冊windows服務命令

sc create tomcat_8080 binPath= D:/server.bat start= auto sc create gitblit1.8.0 binPath= E:/using-tools/gitblit-1.8.0/g

原创 intellij idea 常用配置

1.@Autowired報錯 file——》settings——》editor——》inspections——》spring——》spring core——》code——》Autowiring for bean class

原创 搭建單個kafka broker

1.下載解壓kafka2.12-2.3.1,放到/usr/local/目錄下 2.進入config目錄,修改zookeeper配置文件 [root@localhost config]# pwd /usr/local/kafka_2.12

原创 第一章 spring cloud基礎知識

第一章 基礎知識 1.傳統單體系統缺點 業務耦合度高;部署在一個進程中,一個小的改動需要重啓整個服務;性能瓶頸不好解決 2.微服務優點 業務耦合度第;每個模塊單獨部署在一個進程中;性能瓶頸好解決。 微服務缺點 進程呈數量級增加,運維工作量

原创 mysql 重置自動遞增id起始數字

ALTER TABLE UserT auto_increment=4252;

原创 第五章 spring cloud zuul

1. 服務路由 將zuul自身註冊爲eureka服務,和eureka結合使用,eureka自動維護服務實例 2.path+serviceId及路徑+服務名的方式實現路由 spring.application.name=mis_zuul_