原创 IDEA創建SpringMVC項目並部署(含Controller和View互相傳值,以及406,415狀態碼的處理)

IDEA創建SpringMVC項目並部署(含Controller和View互相傳值,以及406,415狀態碼的處理)1.創建項目2.項目命名3. 在WEB-INF目錄下建classes等目錄4. 配置Tomcat5. 添加類庫6.

原创 centos7安裝vmtools時提示kernel 頭文件路徑問題

centos7安裝vmtools時提示kernel 頭文件路徑問題 安裝vmtools是報錯: Enter the path to the kernel header files for the 3.10.0-957.el7.x8

原创 boostrap 模態框 居中問題

在網上找了不少方法,如下面兩個,自己寫方法修改,並不能很好的解決 https://blog.csdn.net/altaba/article/details/54669660 其中的第二種方法在頁面第一次加載之後彈出模態框還是會出現閃

原创 Mybatis和Spring整合:Manual close is not allowed over a Spring managed SqlSession

Mybatis和Spring整合之後報錯 java.lang.UnsupportedOperationException: Manual close is not allowed over a Spring managed SqlSe

原创 webpack 4.X版本的簡單使用(處理js/css/less/scss/url(圖片)/字體文件)

創建一個工程目錄,在該目錄下創建dist和src兩個目錄,並在src中創建一個index.js文件(其他目錄隨意) 在dos窗口進入該工程目錄,安裝webpack和webpack-cli(需要先安裝npm,nodejs) 方法

原创 Bootstrap 4.X版本的圖標顯示不出來問題

因爲4.X版本Boostrap把icon分離出來作爲一個單獨的項目open-iconic,所以單純的只引入Boostrap項目是不夠的,還需要下載open-iconic項目(Git:https://github.com/iconic/

原创 AsyncHttpClient 的使用問題 Header 報錯

GitHub:https://github.com/scruffyfox/AsyncHttpClient AsyncHttpClient 的版本在1.4.9及以上的版本移除了 httpclient ,所以在使用時會報cz.msebera

原创 java後臺+vue前端,解決jsonp跨域問題(有數據返回的,但是Response的body或者data爲空)

 前端Vue採用jsonp方法訪問後臺數據 前端請求代碼: getAllList() { //導入Vue-resource.js,通過this.$http發起數據請求 //this.$http.get('url').then(fun

原创 Spring Aspect報錯 Caused by: org.springframework.beans.factory.BeanCreationException: Error creating

警告: Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factor