原创 com.fasterxml.jackson.databind.exc.InvalidFormatException

目錄 異常描述 錯誤位置初現 追根溯源 解決過程 解決方案     異常描述: com.fasterxml.jackson.databind.exc.InvalidFormatException: Cannot deserializ

原创 字符串集合轉整型集合List => List

/** * 普通循環轉換 */ public static Consumer<List<String>> forConversion() { return list -> {

原创 org.springframework.beans.factory.BeanCreationNotAllowedException:Error

服務註冊到Eureka時報錯: Invocation of destroy method failed on bean with name 'scopedTarget.eurekaClient': org.springframewor

原创 ES 安裝

下載: 下載各自版本環境即可: elasticsearch: https://www.elastic.co/cn/downloads/elasticsearch kibana客戶端: https://www.elastic.co/cn

原创 no matching manifest for windows/amd64 10.0.18362 in the manifest list entries

Windows下使用docker 下載鏡像時 報錯: no matching manifest for windows/amd64 10.0.18362 in the manifest list entries 解決方案:設置daemo

原创 Json字符串轉換

1.使用阿里的fastjson pom: <dependency> <groupId>com.alibaba</groupId> <artifactId>fastjson</artifactId> <versi

原创 CentOS7 minimal版本 虛擬機內聯網

找到 /etc/sysconfig/network-scripts/ 下的網卡配置文件,一般是ifcfg-ens33 正常情況下將最後一行改爲ONBOOT=yes就可以了 其他情況除外。 注: 1.使用 ip addr 查看ip地

原创 Centos7 安裝Ant

# 下載安裝包地址https://ant.apache.org/bindownload.cgi   # 選擇相應的版本 我這裏選的是apache-ant-1.10.7-bin.tar.gz wget -P /home/seven/dow

原创 遷移Idea配置文件目錄

安裝idea的時候 配置文件默認是在C盤 如果安裝的時候沒有修改 可以通過如下方法修改 默認目錄: C:\Users\XXX\.IntelliJIdea2019.2 將默認目錄的文件複製一份到指定的遷移目錄 遷移之後 修改配置文件:

原创 ES 協議請求

在增刪改查之前,需要了解下,如何進行發送請求。 # 基於http協議請求: curl -X<VERB> '<PROTOCOL>://<HOST>:<PORT>/<PATH>?<QUERY_STRING>' -d '<BODY>' VE

原创 Springboot @Transactional 源碼解讀

基礎知識: 編碼式事務處理:基於編碼實現 聲明式事務處理:基於AOP (本篇文章基於此方式) 實現方式: 配置文件:xml事務規則聲明 註解:@Transactional @Transactio

原创 mvn 執行test後的命令時 跳過test

mvn 執行test後的命令時 跳過test 1. mvn package -DskipTests 2. mvn package -Dmaven.test.skip=true -D 命令解釋:定義系統屬性 -D,--define

原创 解析request請求中的body

/** * 從request中獲取body * @param request */ public static String getBodyString(HttpServletRequest

原创 windows下idea無法識別mvn命令解決方案

一、使用idea自帶maven插件: idea使用maven時無需安裝maven,直接使用idea中的maven插件即可。 優點:無需私下安裝maven 缺點:私有庫默認在c盤,需要自行更改(更改方法暫未知) 問題:使用mvn命令時 提示

原创 mybatis - 批量更新

通過foreach批量更新 通過case when批量更新(100條級別使用,批量更新數據太多會適得其反) 通過ExecutorType.Batch批量更新 通過foreach批量更新 ## mysql update table se