原创 IDEA 如何配置Git?

打開IntelliJ IDEA。 找到IntelliJ IDEA版本控制中Git, 在File–>Setting–>Version Control–>Git–>Path to Git executable。 然後點擊Test 測試是否連

原创 Maven 配置Pom.xml 解析

Maven是基於項目對象模型的概念進行運作的,所以每一個項目中Maven都有pom.xml來進行管理項目之間的依賴關係。 主要功能是爲了下載所對應的jar包,進行統一管理。存放依賴包到.m2目錄下。 1.dependencies 元素,此

原创 Vue2 日期選擇組件 vue-datepicker-local

Vue2一個漂亮的日期選擇組件: 僅依賴於Vue 輕量級(小於4kb的壓縮包) 使用 安裝 $ npm install vue-datepicker-local ES6 <template>   <vue-datepicker-lo

原创 redirect_uri 域名與後臺配置不一致 10003

1.首先確定微信公衆號上配置的url跟自己提交的redirect_uri 是一致的 按照官方下載好txt文件並在服務器上配置好對應路徑   2.根據當前測試網頁授權需要修改鏈接地址

原创 The Tomcat connector configured to listen on port 8000 failed to start. The port may already

The Tomcat connector configured to listen on port 8000 failed to start. The port may already be in use or the connector

原创 本地圖片和網絡圖片進行Base64加密

/** * 對本地圖片文件二進制數據進行Base64加密 * * @param imagePath * @return Base64加密後的二進制字符串 * @throws IOExc

原创 java.io.IOException: Attempted read from closed stream.異常分析

在HttpClient請求的時候,返回結果解析時出現java.io.IOException: Attempted read from closed stream. 異常,解決 注意:原因是EntityUtils.toString(Http

原创 IDEA 配置 [Maven] cannot be opened because it does not exist錯誤

   idea不會編譯src的java目錄的除Java外的文件 需要在pom.xml 中進行配置: <build> <resources> <resource>

原创 Spring Boot 實戰基礎 AOP

1.1 Spring概述 1.1.1 Spring的簡史 第一階段:xml配置 第二階段:註解配置 基本配置(如數據庫配置)用xml,業務配置用註解。 第三階段:Java配置 Java配置可以更理解配置的Bean。推薦使

原创 MySQL 異常 1055 - Expression #1 of ORDER BY clause is not in GROUP BY clause and contains nonaggregat

[Err] 1055 - Expression #1 of ORDER BY clause is not in GROUP BY clause and contains nonaggregated column 'information_

原创 IDEA 設置主題和字體大小方法

1.首先  打開Intellij IDEA 找到Settings設置 2.找到Appearance 中Theme進行設置主題   3.修改字體通過查找Font 修改字體樣式大小。

原创 Spring boot 傳遞JSON 數據格式 爲NULL 格式化。數據庫配置

spring: datasource: driver-class-name: com.mysql.jdbc.Driver username: root password: 123456 url: jd

原创 Spring Boot 創建枚舉Enmu 重中之重

package com.imooc.enums; import lombok.Getter; /** * 商品狀態 * @author GXX * @data 2018/10/20 22:54 */ @Getter publ

原创 jpa 自增字段自動添加 報錯 “error performing isolated work”

在使用Jpa對數據庫進行操作是時,設置的自增字段在進行插入操作時也必須set,否則會報錯添加失敗。 使用 @GeneratedValue 註解能實現自增字段自動添加。 但是使用 @GeneratedValue 會報錯 “error per