原创 [idea]Unable to import Maven project [idea]找不到或無法加載主類
Unable to import Maven project 找不到或無法加載主類 problem 卸載了之前的idea2020版本 重新安裝了idea2019 配置好maven路徑 配置好jdk版本 打開之前項目 maven insta
原创 [java]Error:java: Compilation failed: internal java compiler error
Error:java: Compilation failed: internal java compiler error problem 報錯:Error:java: Compilation failed: internal java co
原创 [hibernate] org.hibernate.exception.GenericJDBCException: could not execute statement.md
org.hibernate.exception.GenericJDBCException: could not execute statement problem hibernate 添加數據報錯 reason 數據庫字段定義爲 not n
原创 [java]cannot resolve method getBean(java.lang.String)
cannot resolve method getBean(java.lang.String) solution 添加 @Autowired @Autowired public static void main(String[
原创 [java]@data註解語法無法識別
@data註解語法無法識別 problem @data註解語法無法識別 solution intelli 編譯器安裝插件 lombok 配置路徑:IntelliJ IDEA -> preferences->Plugins
原创 [java] springboot thymeleaf模板文件未生效
[java] springboot thymeleaf模板文件未生效 problem 引入了thymeleaf模板mvn包 但是頁面訪問只顯示返回字符串'index',而不是templates目錄下的index.html solutin 原
原创 [spring-security]添加form表單通過post前期 提交到後端,請求提示403
添加form表單通過post前期 提交到後端,請求提示403 problem 使用了spring-security,添加form表單通過post前期 提交到後端,請求提示403 solution1 思路: 禁止csrf可以解決問題 默認
原创 [idea]mac not open idea.md
[idea]mac not open mac系統無法打開idea problem mac環境,安裝好idea後 配置了vmoptions 重啓idea,無法打開 reason jar包沒有找到 定位:使用二進制打開ieda 應用程序-In
原创 [antd-mobile] Button組件點擊之後無法恢復原樣
problem 步驟: 點擊按鈕,調用後端接口 設置 okLoading=true; 按鈕的 disabled和loading都綁定到 okloading變量; 調用結束之後 設置okloading=false; 問題: 點擊結束之後
原创 [chrome]網絡請求出現cancel
[chrome]網絡請求出現cancel.md 問題 ajax請求 在Chrome瀏覽器network面板中顯示cancel 原因 看console,有的可以看到js報錯 我的問題是 接口超時 exceed timeout 解決 修改aja
原创 [wechat]小程序wx.rquest接口請求異常
[wechat]小程序wx.rquest接口請求異常.md problem 使用wx.request調用後端接口 如果是調試模式,可以調用成功,進入success回調 如果不是調試模式,無法調用成功,進入fail回調 solve 原因是需要
原创 [vscode]md文件無法使用snippets
problem vscode的md文件無法使用snippets 解決辦法 打開settting.json ~/Library/Application Support/Code/User/settings.json 在文件最後添加下面配置 "
原创 [vite] not read vite.config.ts when build 編譯時沒有讀取vite.config.ts文件
[vite] not read vite.config.ts when build 編譯時沒有讀取vite.config.ts文件 enviroment vite vue ts problem 開發完打包資源, 執行 npm run bui
原创 [ts]cannot find name '__dirname'.ts
cannot find name '__dirname'.ts environment vite vue3 error @vite.config.ts export default defineConfig({ plugins: [vu
原创 [ts] .vite/vue.js oes not provide an export named 'PropType'
[ts] .vite/vue.js oes not provide an export named 'PropType' enviroment vite vue3 set-up mode error import { defineProps