原创 docker快速搭建EKL

安裝elasticsearch # 安裝 # 9300是集羣節點tcp通訊端口 9200是http協議web客戶端RESTful端口 # discovery.type=single-node 表示 使用單個節點開發 添加此行避開引

原创 jasypt加密spring-boot配置文件

本文代碼 https://gitee.com/tothis/spring-boot-record/tree/master/jasypt 當前最新版本爲3.0.0 但我沒有跑起來 本文使用2.1.2實現 官網文檔 添加依賴 <

原创 WebStorm&eslintrc&prettier使用記錄

WebStorm配置tab鍵輸出四空格 注意新版本WebStorm Ctrl+Alt+L格式化不生效需要關閉EditorConfig插件(重啓IDE後生效) 配置eslintrc規則 修改package.json文件 安裝es

原创 html僞類樣式&僞類元素使用記錄

僞類樣式就是配置dom事件發生後的樣式 :link 設置鏈接未被訪問樣式 :visited 設置鏈接已被訪問樣式 :active 設置鏈接點擊時到鼠標鬆開時樣式 :focus 設置鏈接焦點在上時樣式 :hover 設置鼠

原创 eureka使用記錄

CAP理論分佈式系統三個指標 Consistency(一致性) Availability(可用性) Partition tolerance(分區容錯) Eureka和ZooKeeper區別 Eureka(AP)去中心化 在集羣中

原创 MySql You can't specify target table 'xxxx' for update in FROM clause

You can’t specify target table ‘xxxx’ for update in FROM clause 在一條sql語句中不能select的同時對錶數據作update或delete操作 使用select在查

原创 python selelnium使用記錄

selelnium是python自動化測試的庫 本文會持續更新使用記錄 安裝selelnium庫 pip install selenium 安裝webdriver firefox不需要安裝 淘寶鏡像http://npm.ta

原创 IntelliJ IDEA使用記錄

雖然idea通過keymap設置成eclipse快捷鍵 但依然不全通用 點擊查看InteliJ IDEA官網文檔 idea常用配置 設置代碼提示不區分大小 File -> settings -> Editor -> Gen

原创 Thymeleaf自定義方言&自定義工具類

自定義方言 兩個類 /** * Thymeleaf 方言 */ @Component // 被spring管理 public class NumberToLetterDialect extends AbstractProc

原创 MySql模糊刪除表或表數據

模糊查詢表名 拼接成sql 得到drop語句手動執行即可 SELECT CONCAT( 'drop table ', table_name, ';' ) FROM # 數據爲所有數據庫的表 show table不能作爲表數據被

原创 beetl配置mvn後綴

配置解析後綴beetl.suffix=html 默認btl 在使用jsp或thymeleaf時配置spring.mvc.view.suffix=.html在controller中直接return會自動加上.html後綴 但在be

原创 linux dnf使用記錄

centos 8 默認會讀取centos.org的mirrorlist 一般不需要配置鏡像 dnf是個趨勢 https://dnf.readthedocs.io/en/latest/index.html 顯示信息 # 查看版

原创 rust cargo指定國內鏡像

參考 https://huangjj27.gitlab.io/posts/rust-mirror https://doc.rust-lang.org/cargo/reference/source-replacement.html

原创 create-react-app(不執行jest) 添加打包進度條 自動添加打包版本號

終於搞好了 這些東西真的繁瑣 希望有更好的解決方案 特此記錄一下 本文使用 env-cmd+dotenv-cli+react-app-rewired+customize-cra+progress-bar-webpack-plug

原创 linux正確關機步驟

查看當前登錄所有用戶 [root@localhost ~]# who root tty1 2020-04-25 09:35 root pts/0 2020-04-27 23:14 (1