原创 Required String parameter 'classId' is not present

可能使用了註解@RequestParam(value = “classId”),可是前端又沒有傳入classId這個參數導致的錯誤 使用了註解@RequestParam來接收參數,那麼就一定要傳此參數到後臺

原创 pgsql -- update

工具:mybatis+pgsql 詳見pgsql官方文檔 案例1 dao層 void update(User user); sql <update id = "update" parameterType = "com.test

原创 pgsql -- concat_ws

工具:mybatis+pgsql 詳見: pgsql官方文檔 含義: 使用指定分隔符拼接字符串 案例 表數據 id username sex address depId status 1 張三 男

原创 Parameter 'collection' not found

nested exception is org.apache.ibatis.binding.BindingException: Parameter çollection'not found. Available parameter

原创 java 獲取集合中重複的元素

代碼塊 package com.test.boke; import java.util.ArrayList; import java.util.List; import java.util.stream.Collectors;

原创 java 獲取字符串最後一個字符

代碼塊 package com.test.boke; public class StringTest { public static void main(String[] args) { String str = "中國l

原创 java 去除字符串中的特殊字符

代碼塊 package com.test.boke; public class StringTest { public static void main(String[] args) { //1. 可以在中括號內加上任何想

原创 SpringBoot配置文件常用配置

spring.profiles.active = dev 區分不同環境下配置文件,實現不同環境下讀取不同的配置文件

原创 Inspection info: Under Construction

Mybatis-config.xml文件報錯:Inspection info: Under Construction 解決:由於之前引入了mybatis Plugin插件,最近插件出錯,導致xml文件解析失敗,刪除插件後,重啓id

原创 idea如何刷新git分支

idea如何刷新git分支

原创 could not get a resource from the pool

檢查ip是否正確,或者是否是牆不通。

原创 Required request body is missing.

org.springframework.http.converter.HttpMessageNotReadableException:Required request body is missing. 錯誤原因:接口方法定義使用了

原创 error[42883]:operator does not exist:character varying = integer

錯誤[42883]:operator does not exist:character varying = integer 修復建議:no operator matches the given name and argument

原创 Maven打包失敗,報錯:Failed to collect dependencies...

Failed to execute goal on ...: Could not resolve dependencies for project xxx.xxx.xxx.xx:jar:...: Failed to collect

原创 Failed to find …….. was cached in the local repository,resolution will not be reattempted……

[ERROR]Failed to execute goal on project 子項目1: Could not resolve dependencies for project com.example.demo:xxxx:jar