原创 Maven 手工上傳JAR包到私有倉庫

基本命令 mvn deploy:deploy-file -DgroupId=組名 -DartifactId=包名 -Dversion=版本號 -Dpackaging=jar [-DpomFile=Pom文件路徑] -Dfile=J

原创 Git常用命令操作記錄

克隆 獲取主版本 git clone http://xxx.xxx.xxx.xxx/aaa/bbb.git(遠程倉庫地址) $ git clone http://xxx.xxx.xxx.xxx/aaa/bbb.git Clon

原创 Oralce單表性能分析Cardinality值與實際不符優化

問題說明 原表200多萬記錄,刪除保留2000條記錄,但是查詢依然很慢,性能分析cardinality值300多萬 問題解決 執行一下表分析: analyze table 表名 compute statistics;

原创 Vue install 報錯 code EINTEGRITY

問題描述 vue 項目構建報錯 npm ERR! code EINTEGRITY npm ERR! sha512-Q7U5sYpNo+PZyKoAYF/PvFRorP4rY/tbTed/NHLQ6Uk7YPVBzWn1bdcczc

原创 Spring Cloud Kafka簡單學習

Maven配置 <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-stream-kafka</

原创 JPA、Hibernate註解@DynamicInsert和@DynamicUpdate

@DynamicInsert 使用該註解默認值(true)可以讓Hibernate在插入時生成動態語句時忽略空值對應的列。 /** * For inserting, should this entity use dynamic

原创 Spring Boot 集成 WebServiceTemplate使用

增加maven依賴 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web-services</

原创 ElasticSearch常用查詢命令(REST)彙總

集羣狀態查看 http://localhost:9200/_cat/health?v 狀態說明 green:表示所有主分片(primary shard)和副本分片(replica shard)都可用(active) yellow

原创 Spring Boot WebService使用

報錯彙總 nested exception is javax.xml.ws.WebServiceException: org.apache.cxf.jaxws.JaxWsConfigurationException: The @

原创 啓動報錯org.hibernate.MappingException: Could not instantiate id generator

問題描述 啓動報錯: 2019-12-05 17:54:24.049|WARN|main|org.hibernate.id.UUIDHexGenerator HHH000409: Using org.hibernate.id.UU

原创 JPA、Hibernate註解@CreationTimestamp和@UpdateTimestamp

@CreationTimestamp 使用該註解可以讓Hibernate在插入時針對註解的屬性對應的日期類型創建默認值。 /** * Marks a property as the creation timestamp of t

原创 Spring Boot ElasticSearch 整合異常彙總

ElasticSearch地址沒有配置 異常描述 Cannot resolve reference to bean 'elasticsearchTemplate' while setting bean property 'el

原创 Spring @Value使用說明

註解說明 該註解可以使用在字段或者方法/構造的參數上,註解值使用一個具有默認值表達式。 典型的就是使用表達式驅動依賴注入 常用分配方式就是 “${systemProperties.myProp}”,"#{systemProper

原创 Mybatis注入新的參數

背景說明 一般業務級的SQL會關聯用戶信息,那麼在寫SQL是需要將當前用戶獲取然後注入SQL中,最常見的方法是將用戶信息當做條件傳入(Map,實體屬性、參數值等) 但是這種情況下都會在一定程度上破環了接口的抽象性,不夠友好。那麼下

原创 Oracle、Java、Go採用DES/CBC/ZeroPadding加解密一致

加解密,解密前使用16進制編碼轉換字節,加密後使用16進制編碼轉換。以下Java、Go都是針對Oracle進行匹配加解密的。DES加解密都是使用DES/CBC/ZeroPadding模式。 Oracle DES/CBC/ZeroP