快車道

           

          2023年6月29日

          Idea 異常關(guān)閉后,再次啟動(dòng)報(bào)錯(cuò):指定進(jìn)程仍運(yùn)行中

          造成此報(bào)錯(cuò)信息的原因是 idea 的 .lock 文件仍就存在,但實(shí)際其對(duì)應(yīng)的進(jìn)程已經(jīng)不存在,故處理辦法就是刪除 .lock 文件即可。
          .lock 文件在類似于 /.config/JetBrains/IdeaIC2023.2 下,依據(jù)為:
            /snap/intellij-idea-community/current/bin/idea.sh
            其中包含:
              CONFIG_HOME="${XDG_CONFIG_HOME:-${HOME}/.config}"
          參考:
            pycharm啟動(dòng)失敗Cannot connect to already running IDE instance. Exception: Process 7,927 is still running

          posted @ 2023-09-25 09:09 快車道 閱讀(72) | 評(píng)論 (0)編輯 收藏

          SpringBoot 工程 Run/Debug 時(shí)報(bào)錯(cuò):active: @profile.name@ 相關(guān)的 @ 不識(shí)別

          現(xiàn)象:
          1、此工程之前實(shí)際正常 Run/Debug 過(guò),每次修改代碼會(huì)在 idea 中重新 package 打包;
          2、偶然執(zhí)行 Run/Debug 均報(bào)告 active: @profile.name@ 相關(guān)的錯(cuò)誤信息,重新打包后依然報(bào)錯(cuò);

          分析及解決:
          1、基于 active: @profile.name@ 及啟動(dòng)日志信息,明確 springboot 啟用了 @...@ 動(dòng)態(tài)獲取配置的意圖;
          2、檢查 idea 中 maven 插件,確保有選中合適的 profile 選項(xiàng)(有必要到根 pom.xml 中檢查對(duì)應(yīng)項(xiàng));
           2.a、若多選 maven 插件中的多個(gè) profile 選項(xiàng),則會(huì)按 pom.xml 中物理可用的最后一個(gè)來(lái)處理;
           2.b、若全部不選、多選但全部沒(méi)有對(duì)應(yīng)項(xiàng),則 @profile.name@ 無(wú)法被動(dòng)態(tài)轉(zhuǎn)譯,進(jìn)而保留不變;
          3、在 maven 插件中選擇 compile/package,隨后 target/classes/application.yml 中查看結(jié)果;

          參考:
          1、while scanning for the next tokenfound character ‘@‘ that cannot start any token.
          2、聊聊 SpringBoot 中的兩種占位符:@*@ ${*}
          3、在構(gòu)建時(shí)期自動(dòng)擴(kuò)展info屬性
          4、SpringBoot配置文件
          5、Spring BootYAML屬性配置文件使用詳解
          6、Spring boot2 使用profile 配置多環(huán)境
          7、Could not resolve placeholder ‘xxx‘ in value “${xxx}“

          posted @ 2023-08-29 17:18 快車道 閱讀(70) | 評(píng)論 (0)編輯 收藏

          【轉(zhuǎn)】Ubuntu 22.04 網(wǎng)絡(luò)連接失敗(甚至設(shè)置中看不到設(shè)備)

          來(lái)源:
            Ubuntu 22.04重啟后網(wǎng)絡(luò)連接失敗
            Linux Ubuntu22.04重啟網(wǎng)卡命令ip link set enp8s0 down/up
            linux debian/ubuntu RTL8111/8168/8411網(wǎng)卡驅(qū)動(dòng)怎么正確安裝?
          相關(guān)命令:
            sudo ip link      查看網(wǎng)絡(luò)接口
            sudo vi /etc/netplan/01-network-manager-all.yaml    臨時(shí)對(duì) netplan 改用 systemd-networkd 來(lái)替代默認(rèn)的 network-manager
            sudo netplan apply    啟用新的配置
            sudo netplan try      試驗(yàn)
            如果 ping www.baidu.com 成功,則可以運(yùn)行 sudo apt install network-manager,并恢復(fù) netplan 配置
           

          posted @ 2023-08-14 20:49 快車道 閱讀(441) | 評(píng)論 (0)編輯 收藏

          【轉(zhuǎn)】MySQL 一行數(shù)據(jù) mysql一行數(shù)據(jù)轉(zhuǎn)兩列

          來(lái)源:
            MySQL 一行數(shù)據(jù) mysql一行數(shù)據(jù)轉(zhuǎn)兩列
            MySql 一行變多行(根據(jù)特定符號(hào)分割)
            MySQL數(shù)據(jù)庫(kù)中將一條數(shù)據(jù)分成多條數(shù)據(jù) 

          posted @ 2023-07-17 07:35 快車道 閱讀(80) | 評(píng)論 (0)編輯 收藏

          【轉(zhuǎn)】oracle,mysql,h2的時(shí)間類型和函數(shù) + 【轉(zhuǎn)】group by ,having, 聚合函數(shù)的使用

          來(lái)源:https://blog.csdn.net/ned_mahone/article/details/80081394
          來(lái)源:https://blog.csdn.net/christine_ruan/article/details/7569782

          posted @ 2023-06-29 19:39 快車道 閱讀(64) | 評(píng)論 (0)編輯 收藏

          【轉(zhuǎn)】spring.datasource.schema/data 根據(jù)官網(wǎng)深趴

          來(lái)源:https://blog.csdn.net/qq_41055045/article/details/122038093

          推薦適用于測(cè)試的 springboot 2.5 及以上版本中 application.yaml 配置示例:
          # DataSource Config
          spring:
            datasource:
              driver-class-name: org.h2.Driver
              url: jdbc:h2:mem:test
              username: root
              password: test
            sql:
              init:
                schema-locations: classpath:db/schema-h2.sql
                data-locations: classpath:db/data-h2.sql
                mode: always

          不推薦的廢棄配置方式:
          spring:
            datasource:
              schema: classpath:db/schema-h2.sql
              data: classpath:db/data-h2.sql

          posted @ 2023-06-29 12:28 快車道 閱讀(67) | 評(píng)論 (0)編輯 收藏

          導(dǎo)航

          統(tǒng)計(jì)

          常用鏈接

          留言簿(1)

          我參與的團(tuán)隊(duì)

          隨筆分類(3)

          隨筆檔案(11)

          IT學(xué)習(xí)網(wǎng)站

          路過(guò)的博客

          搜索

          積分與排名

          最新評(píng)論

          閱讀排行榜

          評(píng)論排行榜

          主站蜘蛛池模板: 兴和县| 新巴尔虎左旗| 织金县| 平湖市| 出国| 贡觉县| 云和县| 潞西市| 永新县| 时尚| 沽源县| 舞钢市| 北碚区| 江北区| 鲁甸县| 施甸县| 洱源县| 加查县| 衡阳市| 峨眉山市| 盖州市| 黎城县| 河北区| 隆德县| 耒阳市| 峡江县| 麦盖提县| 岳普湖县| 曲松县| 兴和县| 安福县| 仁布县| 翁源县| 新昌县| 南郑县| 桦川县| 辰溪县| 茂名市| 遂宁市| 天峨县| 安乡县|