原创 docker nexus搭建
1、查找鏡像 docker search nexus 2、 拉取鏡像 docker pull sonatype/nexus3 3、啓動容器 docker run -p 8081:8081 --name nexus sonatype/
原创 mysql報錯:The maximum column size is 767 bytes; max key length is 767 bytes
Specified key was too long; max key length is 767 bytes Index column size too large. The maximum column size is 767 byt
原创 create table: Specified key was too long; max key length is 767 bytes
數據庫表採用utf8編碼,其中varchar(255)的column進行了唯一鍵索引 而mysql默認情況下單個列的索引不能超過767位(不同版本可能存在差異) 於是utf8字符編碼下,255*3 byte 超過限制 解決辦法:
原创 kafka yml配置屬性不生效問題
查看KafkaProperties源碼: 找到Producer類: public static class Producer { private final KafkaProperties.Ssl ssl = new
原创 jpush推送通知ios、android
引入jpush sdk <dependency> <groupId>cn.jpush.api</groupId> <artifactId>jpush-client</artifactId> <version>
原创 centos 安裝jenkins rpm安裝
sudo rpm -ih jenkins-2.73.2-1.1.noarch.rpm 自動安裝完成之後: /usr/lib/jenkins/jenkins.war WAR包 /etc/sysconfig/jenkins
原创 struts1標籤
<logic:empty>表示變量是不是爲null <logic:present>表示變量有沒有定義 logic是structs中的邏輯標籤,類似於if/else的邏輯關係,可以通過使用這個標籤改變頁面佈局。present標籤,在cop
原创 IDEA Execute maven Goal
將jar添加到maven倉庫 install:install-file -Dfile=F:\wanghaomiao\JsoupXpath\0.0.1\JsoupXpath-0.0.1.jar -DgroupId=cn.wanghaomi
原创 File contains no section headers
cd /etc/yum.repos.d/ 刪除所有文件: rm -f /etc/yum.repos.d/* 重新下載阿里的 wget -O /etc/yum.repos.d/CentOS-Base.repo http://m
原创 mysql無法添加外建
1.查看存儲引擎 InnoDB: 支持外鍵,支持事務處理 MyISAM: 不支持外鍵,不支持事務 2.查看對應的數據類型是否一致 3、查看字符集、排序規則是否一致 補充一點: 字符集 utf8mb4_bin區分大小寫 utf8mb4_ge
原创 jenkins:Multibranch Pipeline多分支構建,搜遍全網無功而返,在這記錄一下success time!!!
最近研究CI/CD,項目多分支情況下怎麼能高效持續集成、持續部署,造過jenkins的老鐵們都知道,Jenkins 1.x是通過界面手動操作來“描述”部署流水線,那麼Jenkins2.x給我們帶來了福音,2.x支持pipe
原创 kafka-docker搭建kafka
1、安裝zookeeper bin/zkServer.sh start Mode: standalone 啓動成功 2、安裝kafka 啓動kafka:bin/kafka-server-start.sh
原创 解決nexus批量上傳jar文件
本地jar文件目錄創建mavenimport腳本: mavenimport.sh: #!/bin/bash # copy and run this script to the root of the repository dir
原创 Required String parameter 'xxx' is not present
添加required="flase"
原创 springboot如何自動配置
首先我們都知道springboot都是基於註解簡化配置,啓動類註解@SpringBootApplication+run方法就實現大量starter自動配置,源碼: @Target(ElementType.TYPE) @Retention