原创 idea maven項目 mapper文件掃描不到解決方案

異常  invalid bound statement (not found)   pom 文件<build></build> 內添加以下代碼 <!-- 如果不添加此節點mybatis的mapper.xml文件都會被漏掉。 -->

原创 springboot 2.x 使用pagehelper插件

對於使用Mybatis時,最頭痛的就是寫分頁,需要先寫一個查詢count的select語句,然後再寫一個真正分頁查詢的語句,當查詢條件多了之後,會發現真不想花雙倍的時間寫count和select,如果你也在用 MyBatis,建議嘗試該分

原创 springboot 項目熱加載配置 記錄地址

springboot 項目熱加載配置 記錄地址

原创 maven項目spring-mybatis 整合 mapper文件掃描不到解決方案

異常  invalid bound statement (not found)   pom 文件<build></build> 內添加以下代碼 <!-- 如果不添加此節點mybatis的mapper.xml文件都會被漏掉。 -->

原创 mybaits 數據庫版本問題

org.apache.ibatis.exceptions.PersistenceException: ### Error querying database. Cause: java.sql.SQLNonTransientConn

原创 springBoot 跨域請求設置

springBoot 跨域請求設置 springboot 項目添加此類即可 import org.springframework.context.annotation.Bean; import org.springframework.

原创 js 多線程解決方案 Workers

** 簡單實例 if(typeof(w)=="undefined") { w=new Worker("js/Workers/work1.js"); } w.onmessage=function(event){

原创 jq判斷手機端用戶滑動方向事件

$("body").on("touchstart", function(e) { // 判斷默認行爲是否可以被禁用 if (e.cancelable) { // 判斷默認行爲是否已經被

原创 mybatis入門基礎詳解

mybatis入門詳解 Mybatis框架簡介 MyBatis 本是apache的一個開源項目iBatis, 2010年這個項目由apache software foundation 遷移到了google code,並且改名爲MyBa