原创 記錄--JAVA 處理上傳圖片旋轉問題

1、導入jar<!-- Extracts Exif, IPTC, XMP, ICC and other metadata from image and video files(從圖像和視頻文件中提取EXIF、IPTC、XMP、ICC和其他

原创 DTO – 服務實現中的核心數據

原文地址:http://www.cnblogs.com/loveis715/p/4379656.html   在一個Web服務的實現中,我們常常需要訪問數據庫,並將從數據庫中所取得的數據顯示在用戶頁面中。這樣做的一個問題是:用於在用戶頁

原创 CORS簡介--實現跨域調用

原文地址:http://www.cnblogs.com/loveis715/p/4592246.html 現在請跟我做:在您的瀏覽器的地址欄中輸入www.yhd.com並敲擊回車。在網站內容全部加載完畢後,按F12打開瀏覽器的調試窗口。

原创 Spring Boot Shiro權限管理--擴展FormAuthenticationFilter實現動態改變LoginUrl

1、自定義FormAuthenticationFilterimport org.apache.shiro.web.filter.authc.FormAuthenticationFilter; import org.apache.shiro

原创 windows部署tomcat服務自動啓動,同時解決服務無法啓動的問題

1、安裝tomcat服務進入tomcat的bin目錄下,運行service.bat install安裝。如果提示Failed,可執行services.msc查看服務,看是否已存在Tomcat7服務,有則需要

原创 記錄--js獲取url參數

1、/** * js獲取url參數 */ function getRequest() { var url = location.search; //獲取url中"?"符後的字串 var theRequest = new

原创 Tomcat7啓動報Error listenerStart錯誤

原文:http://www.cnblogs.com/nayitian/p/3439336.html 問題 Tomcat7在啓動時報錯,詳細信息如下: 十一月 23, 2013 7:21:58 下午 org.apache.catali

原创 記錄 -- spring boot jar 部署

1、執行命令:mvn clean install,生成jar文件;可能報錯,去掉test類試試 <build> <plugins> <plugin> <grou

原创 關於spring mvc重定向的兩種實現方法

使用RedirectAttributes類 @RequestMapping("/first") public String first(RedirectAttributes redirectAttributes) { SysU

原创 jqGrid使用ajaxGridOptions來獲取返回信息,從而判斷session是否過期

$(grid_selector).jqGrid({     ...,     ajaxGridOptions :{         // ajaxGridOptions用於設置當表格設置獲得數據時,ajax的全局屬性,注意此項可能覆蓋所有

原创 windows下redis/tomcat開機自啓動

一、windows下redis開機自啓動1,在redis的目錄下執行(執行後就作爲windows服務了)redis-server --service-install redis.windows.conf2,