原创 【轉】【C#】源生成器

遇到 CommunityToolkit.Mvvm 的一些新特性時,發現在 .net framework 4.8 不起作用,查閱相關資料發現: 這些新特性要求在 netstandard2.0 才能起作用 相關資料:https://www.cn

原创 [轉] C# 語言版本控制

當使用新版本的語法糖時,編譯器報錯了:   參考:https://learn.microsoft.com/zh-cn/dotnet/csharp/language-reference/configure-language-version

原创 【轉】[java] 第一百個素數輸出

public class HundredthPrime { public static void main(String[] args) { int count = 0; for (int i =

原创 【轉】添加虛擬打印機紙張

參考: https://learn.microsoft.com/zh-cn/windows-hardware/drivers/print/supporting-user-defined-paper-sizes 首先找到配置文件位置 C:\W

原创 [轉][Java]Tomcat 配置項

  修改文件配置 JVM 參數:  對於 MIME類型,可以在 ${TOMCAT_HOME}/conf/web.xml 文件裏看到當前 Tomcat 支持有哪些 MIME 類型。

原创 【轉】[Java]常見 Http Code

常見的狀態碼有  200 / 404 / 500 等  https://blog.csdn.net/vdora/article/details/115113227

原创 【轉】Idea 下載安裝 Gradle

推薦下載地址(騰訊鏡像):https://mirrors.cloud.tencent.com/gradle 在裏面搜索對應版本號進行下載,比如 gradle-7.5.1-bin.zip 下載後直接將壓縮包移動到 C:\Users\{User

原创 【轉】在 github 添加一個 SSH key

參考:https://zhuanlan.zhihu.com/p/34584694 1、登錄到 https://github.com ,在 設置 頁面的左側菜單裏找到 SSH and GPG keys 2、打開 Git Bash 3、運行 

原创 【轉】Win10 文件名過長的問題解決

因文件名太長,下載文件時報錯 解決方法:  gpedit.msc // 打開組策略 計算機配置 - 管理模板 - 系統 - 文件系統 設置 啓用 Win32 長路徑 爲 已啓用  然後重啓電腦或者執行命令 gpupdate 更新組策略

原创 【轉】項目開發約定

簡寫daoservicecontroller頁面按鈕 C create save add - add R read find list list search/query U update modify edit view

原创 【轉】解決Win10 照片查看器無法顯示圖片的BUG

轉自:https://zhuanlan.zhihu.com/p/270892557 顏色管理 - 高級 - Agfa : Swop Standard 即可。  

原创 [轉][Java]ApplicationContext 的繼承體系

    public static void main(String[] args) { ApplicationContext applicationContext = new ClassPathXmlApplicationCon

原创 [轉][Linux]安裝 Centos

轉自:https://zhuanlan.zhihu.com/p/145102034 1、下載 Centos 鏡像,推薦:Centos 7.X            下載地址:https://mirrors.aliyun.com/centos

原创 [轉][Centos]安裝 gogs

也可以從 https://gogs.io 下載安裝 參考:https://blog.csdn.net/hahofe/article/details/117291920 1、包管理安裝 # 獲取安裝源 sudo wget -O /etc/y

原创 【轉】【Centos】配置靜態IP

轉自:https://blog.csdn.net/zhujing16/article/details/88677253 如果已經安裝了 Centos 裏的 GNOME 桌面,可以不用命令行下操作 # 查看當前 IP 地址 ip addr