原创 使用 jenkins+docker 實現 git+springboot+gradle 及前端項目的持續集成和部署

0 前言 記錄 jenkins 基於 docker 的前後端項目的構建及部署全流程。後端項目案例使用 SpringBoot+Gradle,前端項目案例框架不限 1 部署 jenkins 1.1 獲取鏡像 前往 https://hub.doc

原创 nginx 容器以交互模式啓動並指定啓動命令時無法工作的問題

新建 nginx 容器時使用 -it 參數以交互模式啓動,並指定執行命令爲 /bin/bash,容器新建成功但瀏覽器連接 80 端口無響應。新建命令如下: docker run --name nginxtest \ -itd \ --res

原创 Excel 公式及 VBA 使用筆記(不定時補充)

▲ 獲取所在工作表名稱 RIGHTB(CELL("filename",$A$1),LEN(CELL("filename",$A$1))-FIND("]",CELL("filename",$A$1))) 釋義:磁盤全路徑長度減去第一個中括號

原创 Hadoop 3.2.0 在 CentOS 7 下搭建僞分佈式和完全分佈式集羣的案例

環境及工具 Hadoop 3.2.0 Windows 10 1809 CentOS 7.6.1810 VMware 15.1.0 OpenJDK 8(Amazon Corretto 8.222.10.1) 注意事項:由於 javax.

原创 CentOS 7 的 ISO 鏡像文件介紹

CentOS-7-x86_64-DVD-1810.iso,標準安裝版(推薦) CentOS-7-x86_64-Everything-1810.iso,對完整版安裝盤的軟件進行補充,集成所有軟件。包含centos7的一套完整的軟件包,可以用來

原创 JDK 11 下操作 Access 數據庫

摘要:記錄了在 JDK 11 下操作 Access 數據庫的方法,作爲備忘。 Access 堪稱歷史文物級別的數據庫。目前見到的用戶,幾乎都是一些設備生產廠家,通常配合 VB 來做設備管理系統,也有配合 Excel 的宏代碼來做報表輸出

原创 Item 47: Prefer Collection to Stream as a return type(優先選擇 Collection 而不是流作爲返回類型)

Many methods return sequences of elements. Prior to Java 8, the obvious return types for such methods were the collectio

原创 Item 44: Favor the use of standard functional interfaces(優先使用標準函數式接口)

Now that Java has lambdas, best practices for writing APIs have changed considerably. For example, the Template Method p

原创 Item 46: Prefer side-effect-free functions in streams(在流中使用無副作用的函數)

If you’re new to streams, it can be difficult to get the hang of them. Merely expressing your computation as a stream pi

原创 Item 45: Use streams judiciously(明智地使用流)

The streams API was added in Java 8 to ease the task of performing bulk operations, sequentially or in parallel. This AP

原创 Item 48: Use caution when making streams parallel(謹慎使用並行流)

Among mainstream languages, Java has always been at the forefront of providing facilities to ease the task of concurrent

原创 Item 43: Prefer method references to lambdas(方法引用優於 λ 表達式)

The primary advantage of lambdas over anonymous classes is that they are more succinct. Java provides a way to generate

原创 Item 42: Prefer lambdas to anonymous classes(λ 表達式優於匿名類)

Historically, interfaces (or, rarely, abstract classes) with a single abstract method were used as function types. Their

原创 Spring boot 配合 Mybatis 使用事務

項目結構 主要演示代碼 1、Application(添加 @EnableTransactionManagement 註解) @SpringBootApplication @EnableTransactionManagement @Mapp

原创 安裝 Twisted 出現 not a supported wheel on this platform 錯誤的解決方案

問題描述 安裝 Twisted-19.2.0-cp37-cp37m-win_amd64.whl 時提示如下錯誤: ERROR: Twisted-19.2.0-cp37-cp37m-win_amd64.whl is not a support