原创 idea tomcat中文亂碼 解決辦法
idea.exe.vmoptions 和 idea64.exe.vmoptions 加入 -Dfile.encoding=UTF-8
原创 springboot 日誌輸出
https://www.baeldung.com/spring-boot-logging
原创 springboot 靜態資源緩存設置
springboot 靜態資源 js css 緩存設置 @Configuration public class WebMvcConfiguration implements WebMvcConfigurer { @Overr
原创 docker mysql8.0 client does not support authentication protocol requested by server
docker mysql8 client does not support authentication protocol requested by server;consider upgrading MySQL client; 開啓遠程
原创 Eureka多網卡下的IP選擇
1.忽略指定名稱的網卡 spring: cloud: inetutils: ignored-interfaces: - docker0 - veth.* 2.使用正則表達式,指定
原创 springboot2.0 Hystrix Unable to connect to Command Metric Stream
springboot2.0 Hystrix Unable to connect to Command Metric Stream pom.xml <parent> <groupId>org.springframewo
原创 Eureka的元數據
在之前的項目中https://blog.csdn.net/u011164906/article/details/79734908 寫個controller import org.springframework.beans.factor
原创 springboot jpa 樹對象 遞歸遍歷知道當前第幾層
現在時間是週五晚上九點十八分,視線左邊手機播放着電影《鬼入侵》,正對着我的就是我的電腦了。剛纔玩了幾局吃雞遊戲,眼睛花的不想玩了,乾脆就敲代碼吧,沒有女朋友的都和我一樣嗎?哈哈 最近想把家裏的網站升級一下,這個防火布網站主要是把後臺重新做
原创 上傳jar包到maven官方倉庫
參考: https://central.sonatype.org/pages/ossrh-guide.html https://www.sojson.com/blog/250.html 寫一遍我自己成功上傳的整個流程,遇到的錯誤,記錄
原创 netty權威指南第二版源碼
netty權威指南第二版源碼 https://github.com/wuyinxian124/nettybook2
原创 Alibaba Java Coding Guidelines-1.0.4 p3c 阿里巴巴出品的java代碼規範插件
Alibaba Java Coding Guidelines-1.0.4 阿里巴巴出品的java代碼規範插件網盤地址https://pan.baidu.com/s/1DYJ1wpAoffJknpmmDj5mvA
原创 springboot websocket stomp 小程序
前期準備申請一個ssl證書免費的就可以阿里雲:https://common-buy.aliyun.com/?commodityCode=cas#/buy然後下載證書我們需要這個 .key 文件,把該文件放在spring boot項目res
原创 RestTemplate 添加請求頭headers和請求體body
//headers HttpHeaders requestHeaders = new HttpHeaders(); requestHeaders.add("api-version", "1.
原创 springboot ueditor 集成 ueditor-spring-boot-starter
!ueditor-spring-boot-starter項目地址:https://github.com/weiangongsi/ueditor.git集成的時候對源碼稍有改動,改動信息如下1. com.baidu.ueditor.defi
原创 springboot redis 使用 CrudRepository 類似jpa一樣的效果
新建springboot項目 maven引入redis依賴<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-start