原创 lombok的@Data與@Builder一起使用時,實體類沒有無參構造函數

使用Lombok的@Data和@Builder作爲post請求接口接收前臺傳到後臺的參數,還沒進入方法,後臺報錯,主要報錯信息:java.lang.IllegalStateException: No primary or defa

原创 服務器部署python項目

使用pycharm同步代碼到服務器 安裝virtualenv及擴展包: pip install virtualenv pip install virtualenvwrapper 使用pip命令查看是否安裝完成:pip list

原创 學習python--使用django搭建web項目

使用django礦建官網地址:https://www.djangoproject.com/download/ 使用pip安裝 pip install django 建立虛擬環境(創建一個獨立的Python運行環境) 安裝虛擬環境命

原创 deepin使用git的ssh

第一步,使用ssh-keygen生成祕鑰 Generating public/private rsa key pair. Enter file in which to save the key (/root/.ssh/id_rsa

原创 vue下載靜態資源js

import axios from 'axios' export default function fileDownLoad(path) { let urls = path.split('/'); axios.c

原创 使用FileZilla Server frp搭建文件服務器內網穿透

安裝配置FileZilla Server創建文件服務器,配置用戶(創建用匿名戶名anonymous,任意用戶訪問),共享文件夾 配置ftp被動模式 ps:不太懂ftp被動模式主動模式區別,有興趣可以去網上找找資料,設置自定義端口

原创 學習Spring Cloud 隨筆(依賴)

開發環境 JDK: 1.8 ,IDE:intellij ,spring boot:2.0.7.RELEASE ,spring cloud: Finchley.SR2,gradle 添加依賴 build.gradle: builds

原创 Spring Boot整合Activiti6.0.0

添加依賴 <!--spring boot 快速啓動依賴--> <dependency> <groupId>org.activiti</groupId> <artifactId>activiti-spring-boot-

原创 mybatis mysql 批量查詢數據判斷

mysql判斷字段是否爲空 select case when isnull(colum) then '' else colum end from tableName where …… 做完發現case只能判斷字段爲空,如果數據不存在

原创 破解jetbrains相關軟件

在http://idea.lanyus.com/下載破解補丁 修改兩個.vmoptions文件 -javaagent:破解補丁地址 輸入破解信息 ThisCrackLicenseId-{ "licenseId":"ThisCrack

原创 VUE使用SVG

在vue中使用,需要先npm install snapsvg將其引入,其次需要引入npm install imports-loader,然後在使用時會碰上巨坑Uncaught TypeError: Cannot read proper

原创 git reset --hard命令挽救方法

先看看git reset --hard xxxxxx 命令長啥樣。 ps:返回到某一次commit前的代碼 git reset --hard xxxxxx //強制返回到某次提交前的源碼狀態 =慎用 git reset --h

原创 git常用命令

提交刪除 初始化git:git init 克隆到本地:git clone XXXXX.git 提交本地:commit 提交遠程:push 創建分支:git branch -b 或者 git checkout -b 創建遠程分支:git

原创 element UI table 行動態合併

element table行合併只能從第一列開始合併 rowspan:合併行數 colspan:合併列數 <!--實現table的span-method方法 --> cellMerge({ row, co

原创 int數據性使用常見錯誤

定義實體屬性未int類型是前臺接收參數時如果參數值未空系統會自動將空類型全程int型參數導致不能傳參成功 解決辦法:使用原生Integer類型 mybatis查詢數據庫時<if test=" parem !=null && parem