原创 spring boot 問題總結

@PathVariable 當使用@RequestMapping URI template 樣式映射時,@PathVariable能使傳過來的參數綁定到路由上,這樣比較容易寫出restful ap @RequestParam等同於上面 只

原创 hystrix.command feign ribbon 超時問題

application.properties hystrix.command.default.execution.isolation.thread.timeoutInMilliseconds=93000 hystrix.command.

原创 zuul 和後面微服務的最大併發請求數

zuul 接受請求 轉發請求  微服務接受請求  其中接受請求 還是受到  #默認10000 #server.tomcat.max-connections=10000 #默認200 server.tomcat.max-threads=1

原创 spring boot配置補充

test.date=2019-08-13 spring.jpa.hibernate.ddl-auto=update spring.jpa.show-sql=true //大概包key too large spring.jpa.prop

原创 文件合併用小內存

傳統方式 Files.write(Paths.get("D:\\upload\\21.txt"), Files.readAllBytes(Paths.get("D:\\upload\\deleted\\1.mp4")), Standar

原创 docker elasticsearch出現的問題

elasticsearch.yml http.host: 0.0.0.0 # Uncomment the following lines for a production cluster deployment transport.host

原创 RocketMQTemplate是如何自動注入到bean容器的

時隔多年又開始寫博客了 最近做項目時發現 一個問題 @Resource private RocketMQTemplate rocketMQTemplate; 不知道如何自動注入進來了項目裏也沒用@Bean之類 經過探究源碼如下首先引

原创 jenkins 入門

https://blog.csdn.net/miss1181248983/article/details/82840006

原创 spring security 授權服務器 認證服務器 OAUTH2 redis

application.xml 首先引進redis的相關配置 token是要存在這裏的 #Mon Nov 04 11:33:55 CST 2019 spring.redis.lettuce.pool.min-idle=0 spring.

原创 java visual vm連接遠程主機

現找到遠程主機的java 如果自帶的openjdk 先寫這樣一個文件  grant codebase "file:/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.222.b10-1.el7_7.x86_64/l

原创 maven經驗

打包 mvn clean install -Dmaven.test.skip=true 進入到項目與src的同級目錄 -Dmaven.test.skip=true 跳過測試目錄 否則的 會把測試的類也打進去並且 執行 也可以 <prop

原创 jenkins總結

我的理解是jenkis能自動打包發佈 如此而已 就是能自動從你的git上 用maven 打包 發送到指定 linux上 然後啓動  就這樣 我自己是用docker 上面安裝了linux虛擬機  又用docker 下載 jenkins/je

原创 window 搭建redis集羣

無非就是提高性能 就以三臺爲 不用主從結構 同樣的redis複製三份   裏面的redis.conf 我這個redis.conf是複製redis.window.conf的 裏面的配置 除了改端口外 就下面複製複製 就成 cluster-e

原创 Elasticsearch和spring boot整合

pom.xml <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://ww

原创 git

Delta compression using up to 4 threads. Total 12 (delta 5), reused 0 (delta 0) The remote end hung  沒有權限