原创 上傳文件提示The temporary upload location [/tmp/tomcat.xxxx...問題解決方案

異常描述 Caused by: java.io.IOException: The temporary upload location [/tmp/tomcat.xxx.xxx/work/Tomcat/localhost/ROOT]

原创 openFeign Get請求自動轉爲Post問題

在對象前面加上註解@SpringQueryMap

原创 Redis各版本描述

Redis2.6 Redis2.6在2012年正是發佈,經歷了17個版本,到2.6.17版本,相對於Redis2.4,主要特性如下: 服務端支持Lua腳本。 去掉虛擬內存相關功能。 放開對客戶端連接數的硬編碼限制。

原创 Nginx進行TCP代理配置

普通TCP stream { server { listen 16380; #要監聽的端口 proxy_pass 192.168.0.195:637

原创 電子圍欄進出判斷工具類

public class GeoJudgeUtils { /** * 地球半徑(米) */ private static final double EARTH_RADIUS = 6378137

原创 關閉防火牆後,啓動容器報錯: docker0: iptables: No chain/target/match by that name

在關閉防火牆後, 啓動容器報以下錯誤: Error response from daemon: Cannot restart container 41d2e371d5c5: driver failed programming ex

原创 FastJSON和Jackson註解

1、時間格式化註解 Jackson- @JsonFormat: @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") private LocalDateTime create

原创 SpringCloudGateway獲取請求體參數方式

1.版本說明 框架 版本 springboot 2.2.6.RELEASE spring-cloud-alibaba 2.2.0.RELEASE spring-cloud-gateway 2.2.0.RELE

原创 Spring Cloud通過Feign請求返回值LocalDateTime異常

問題描述: 通過openFeign調用接口, 請求能達到服務, 但是返回值中含有LocalDateTime類型參數, 報以下錯誤: feign.codec.DecodeException: Type definition erro

原创 Netty與SpringBoot使用注意點

1. 注意在Encoder、Decoder、Handler中使用注入 @Resource private AuthHandler authHandle ServerBootstrap b = new ServerBootstra

原创 gateway yml配置文件轉成json格式

- id: admin-service uri: lb://admin-service predicates: - Path=/admin/** - Weight=

原创 SpringCloudGateway遇到的坑

1. 啓動報錯: No qualifying bean of type 'org.springframework.core.convert.ConversionService 原因: 這個異常是因爲spring cloud gat

原创 @RequestMapping和@FeignClient放在同一個接口上遇到的坑

@RequestMapping("/user/admin") @FeignClient(ServiceNameConstants.USER_ADMIN_SERVICE) public interface IUserAdminAut

原创 Android - 如何打jar包

在需要打包的module中的build.gradle中添加如下配置 //Copy類型 task makeJar(type: Copy) { //刪除存在的 delete 'build/xxxSDK.jar'

原创 使用safe-rm避免rm -rf / 危險操作

使用safe-rm避免rm -rf / 危險操作 1. 下載safe-rm wget -c https://launchpadlibrarian.net/188958703/safe-rm-0.12.tar.gz 2. 解壓&移動