原创 mybatis.xml中的if判斷中的等於0問題
<if test="value!=null and value!='' ">....</if> 此時若value爲數字封裝類型且 vlaue=0 mybatis會默認把value轉爲'',因此<if>中的代碼不會執行 解決方法:
原创 mybatis.xml中的雙等問題
在mybatis.xml中使用雙等做判斷比如 <if test=" value=='Y' "> 運行時會把value轉爲數字如果value不是數字會報錯 解決方法 :改爲 <if test=" value=='Y' .toString(
原创 oracle明明有這個字段查詢時卻顯示標識符無效
設計表時字段名一定要大寫
原创 springmvc 無法接收post請求參數
去掉ajax的contentType屬性
原创 VMware掛載U盤
1、連接U盤 2、fdisk -l 查看U盤位置 (ndfs不支持,最好先格式化了) 3、mkdir /mnt/usb 創建掛載目錄 4、mount /U盤路徑(例如 /dev/sdc4) /mnt/usb
原创 springboot默認日誌logback
1.application.properties #指定xml配置文件位置 該配置文件只能制定一些簡單配置。因此爲了方便管理最好把所有的配置信息都寫到xml中 logging.config=classpath:logback.xml
原创 後端發送URL請求
1、發送請求 public InputStream sendUrl(String url)throws Exception{ HttpURLConnection conn = (HttpURLConnection)
原创 Elk架構學習(一:Elastic Search環境搭建與基本使用 )
1、elasticsearch 1.1安裝elasticsearch https://blog.csdn.net/weixin_41615494/article/details/79591335 很詳細基本上涵蓋所有問題 補充:所有配置
原创 開啓 Hyper-V 後VMware無法啓動
1、關閉Hyper-V 2、關閉Hyper-V相關服務 3、重新安裝(或者修復VMware) 4、重啓計算機 5、正常啓動 附:異常截圖
原创 springboot筆記
1.啓動文件必須放在最外面。其他類如果想讓springboot掃描到。必須放在啓動類的同級包或同級包的子包中。 2、application.properties常用配置 1、指定訪問端口 server.port=8089 3、s
原创 lombok學習
1. idea安裝Lombok插件 2.@Getter 和@Getter (只能加在屬性上)爲屬性生成get set方法 import lombok.Getter; import lombok.Setter; class tes
原创 redis的持久化數據存儲
1.快照機制(RDB) # # Save the DB on disk: # # save <seconds> <changes> # # Will save the DB if both the given number o
原创 redis配置參數(redis.conf)
詳細解釋:https://www.cnblogs.com/kreo/p/4423362.html 1.bind 0.0.0.0 ~~~ WARNING ~~~ If the computer running Redis is
原创 編程掃盲
1.iaas paas saas 基本概念:這是三種雲服務平臺 1.1 Infrastructure-as-a-Service(IaaS)【基礎設施服務】、Platform-as-a-Service(PaaS)【中間件設施服務】、So
原创 找不到命名空間
org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from class pa