原创 ngrox外網映射
一、下載.exe文件 https://ngrok.com/download 二、將下載好的zip包解壓會有一個.exe文件,放到想放的目錄 三、獲取token https://dashboard.ngrok.com/auth/your-a
原创 Spring boot項目學習系列二——使用aop切面的方式記錄web日誌學習筆記
https://github.com/xkcoding/spring-boot-demo/tree/master/spring-boot-demo-log-aop之學習筆記 1、pom中需要的主要的jar包 <depen
原创 兩個線程輸出1a2b3c4d...
package Thread; public class ThreadDemo2 { static Thread t1 = null,t2 = null; static boolean flag = true;//t
原创 idea工具下載jar報錯sun.security.validator.ValidatorException: PKIX path building failed...
報錯全信息: Could not transfer artifact org.springframework.boot:spring-boot-starter-actuator:pom:2.1.9.RELEASE from/to cent
原创 Spring boot項目學習系列一——獲取自定義配置,以及多環境配置文件的切換
最近只要稍微學一點東西就覺得很有收穫,好像自己的儲備徹徹底底不夠用了,需要趕緊補充點技術能量 git上搜到一個大神項目https://github.com/xkcoding/spring-boot-demo,感覺超級棒,於是開啓sprin
原创 spring boot項目日誌處理
1、我使用的是spring boot自帶的日誌處理包,沒有在pom裏面引進其他的jar包,我的pom文件如下: <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://
原创 sprint boot項目
1、log提示變量不存在,編譯不通過 2、啓動之後控制檯出現信息: Initializing Spring embedded WebApplicationContext之後就沒有了 折騰了好久,控制檯不打印日誌,在網上試了各種方法都不行
原创 安裝mysql時出現的問題
換了新電腦,重新安裝開發工具記錄遇到的問題 根據菜鳥教程https://www.runoob.com/mysql/mysql-install.html進行安裝 1、執行命令: mysqld --initialize --cons
原创 創建maven項目 出現PKIX,sun.security.provider.certpath.SunCertPathBuilderException Maven model問題
轉載出處:https://www.cnblogs.com/coolSome/p/12611114.html 問題分爲兩部分:1、是PKIX帶來的證書問題,2、是Maven模型問題 解決 第一個問題解決: 方法一:忽略SSL證書檢查:-Dm
原创 postman 總是返回 Could not get any response
公司做好的接口,用postman測試的時候總是報錯Could not get any response,並且瀏覽器提示關閉SSL,proxy,certificates,request timeout等等問題 改了一週多,還是同樣的問題,最
原创 靜態代理和動態代理的理解
1、靜態代理 代碼參考: https://blog.csdn.net/dcxmaozi/article/details/99852198 https://www.cnblogs.com/djoker/p/6242047.html http
原创 自定義註解實現orm框架
一、首先自定義兩個註解,分別是表名映射註解和字段名映射註解 import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import j
原创 搭建Angular 2 TypeScript 項目
官方參考文檔:https://www.runoob.com/angularjs2/angularjs2-typescript-setup.html 搭建好之後 npm start時報錯 在這裏https://cloud.tencent
原创 單例模式複習
懶漢式 一步一步走 一、非單例舉例 package test2; class SingleTon{ } //餓漢式單例模式,採用雙重檢驗 public class Test3 { public static void mai
原创 Spring的註解@Qualifier用法
當一個接口有多個實現類,假如說DownloadServiceImlp1,DownloadServiceImlp2都實現了DownloadService,那麼在Download業務的controller中註冊Service服務時就會用到@Q