原创 Bean註冊的幾種方式

1、無參構造方法 xml裏面 <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans"

原创 springcloud gatway圖片

 

原创 小技巧

 nested exception is org.springframework.context.ApplicationContextException: Unable to start ServletWebServerApplicati

原创 ES

ES 和zipkin搭建

原创 websocket 第三篇

遊戲版本公告系統 http://localhost:8080/v1/index.html http://localhost:8080/v1/admin.html 1、上面兩個連接  連接上endpoint 基站 之後 app.js裏面 發

原创 chrome jsonView插件安裝

chrome 應用商店打不開,想裝插件愁死人了。 今天想到一個好方法,以 jsonView插件爲例分享一下。 1、打開 https://github.com ; 2、搜索 jsonView 鏈接:https://github.com/se

原创 docker第一篇 離線安裝

一、下載 https://download.docker.com/linux/static/stable/x86_64/ 二、Docker安裝 1、解壓 tar zxvf docker-17.12.0-ce.tgz  2、將解壓出來的do

原创 第八節 Springcloud config 自動刷新機制

http://localhost:8085/order-dev.yml 1、運行Eureka http://localhost:8761/  http://localhost:8762/ 2、運行config-server端,連接到git

原创 第七節 Springcloud config

步驟一: 配置文件都放到這裏面去 https://github.com/bluewelkin/springcloudconfig 步驟二: 項目一的Eureka啓動   以下爲項目二 config-server項目 步驟三: <d

原创 IDEA 中 pom.xml 無法自動提示問題的解決

1、問題 在IDEA的pom.xml中添加依賴時沒有補全提示 2、原因 IDEA 是利用索引實現自動補全的。 中央倉庫(http://repo1.maven.org/maven2/ ,它是maven中央倉庫的地址,內置在maven源碼中)

原创 docker第三篇 nginx和tomcat

docker run -d -p 8081:80 hub.c.163.com/library/nginx  netstat -tunlp|grep 8081 然後 http://39.108.78.15:8081/即可 公網ip加端口

原创 Redis 分佈式鎖(一)

問題 (1)redis如何實現分佈式鎖? (2)redis分佈式鎖有哪些優點? (3)redis分佈式鎖有哪些缺點? (4)redis實現分佈式鎖有沒有現成的輪子可以使用? 簡介 Redis(全稱:Remote Dictionary Se

原创 小技巧

Field userMapper in com.tx.mall.service.impl.UserServiceImpl required a bean of type 'com.tx.mall.dao.UserMapper' that

原创 JAVA事務

場景一: 主調用方:沒有事務 public void testPropagationTrans() { stuService.saveParent(); stuService.saveChild

原创 websocket 第二篇

參考文章:https://spring.io/guides/gs/messaging-stomp-websocket/ 打不開頁面http://localhost:8080/index.html 1、換一個版本就行了 <parent