Time of Update: 2018-12-05
Apache Shiro
Time of Update: 2018-12-05
問題描述:MySQL進行字串比較時發生錯誤:SELECTa.equ_no,b.fullCodeFROMequipment a,(SELECTt.*, getEquTypeFullCode (t.equType_id) AS fullCodeFROMequ_type t) bWHEREsubstring(a.equ_no, 1, 5) = b.fullCode錯誤如下:[Err] 1267 - Illegal mix of collations (utf8_unicode_ci,IMPLICIT)
Time of Update: 2018-12-05
網上有幾種方法,其中一種是使用javascript的函數encodeURI()做如下處理:url=encodeURI(encodeURI(url));這樣存在一個問題:由於經常需要確認對每一個可能出現中文參數的地方都做以上處理,比較麻煩!有一種比較簡單的解決方案(基於tomcat伺服器):修改tomcat的設定檔server.xml,添加“URIEncoding="UTF-8"”,具體如下:<Connector port="8080" protocol="HTTP/1.1"
Time of Update: 2018-12-05
這裡不是寫關於ContextMenu的相關代碼問題,而是我自己運行程式時碰到的一個小插曲。 Notepad2按照教程上的步驟填充完畢,運行,一切良好。Add item可以添加,單擊添加的item,可以修改,可是,如何刪除呢? 我對ContextMenu如何調出還真是不知道,嘗試了N種方法(包括直接在虛擬機器上點右鍵,哈)後,只好上網搜,才知道,原來長按(2
Time of Update: 2018-12-05
與好友在網路上相互傳輸資料時,有時先要知道對方電腦的IP地址,才能與對方建立資訊傳輸通道。 那麼對方的IP地址該如何搜查得到呢?這樣的問題你也許會嗤之以鼻,的確,查詢對方電腦的IP地址,實在簡單得不值得一提;可是,要讓你列舉出多種IP地址搜查方法時,你可能就感到勉為其難了。下面,本文就對如何快速、準確地搜查出對方好友的電腦IP地址,提出如下幾種方法,相信能對大家有所協助! 1、郵件查詢法 使用這種方法查詢對方電腦的IP地址時,首先要求對方先給你發一封電子郵件,然後你可以通過查看該郵件屬性的方法,
Time of Update: 2018-12-05
基本上自己的SSJ(H)架構都成形了,除了Entity外,Dao用的Spring data, Service和Action把基本的CRUD都寫到一個父類裡,子類只需繼承父類並定義一些基本資料即可,然後就是前台頁面。按道理講檔案建立成功並配置完了就該能成功啟動並執行,誰知道運行就出現異常:Could not find action or result,仔細看,哦Namespace寫錯了,好,改完,運行,下一個異常:No result defined for
Time of Update: 2018-12-05
Apache Tomcat/6.0.18 - Error report<!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3
Time of Update: 2018-12-05
動態載入JS檔案 function include_js(file) { var _doc = document.getElementsByTagName('head')[0]; var js = document.createElement('script'); js.setAttribute('type', 'text/javascript'); js.setAttribute('src', file);
Time of Update: 2018-12-05
參照教程指導,下載了 NotepadCodeLab,在Eclipse中點擊File > New > Android Project,選擇Create project from existing source,瀏覽到Notepadv1檔案夾,選定,其他內容自動填滿, Build Target 選擇最低版本,Finish,添加成功,但是項目上出現紅叉。看輸出控制台上顯示大意是找不到R.java,可R.java明明在項目中列出來了啊。 教程上說如果看到
Time of Update: 2018-12-05
嚴重: Exception starting filter struts2Unable to load configuration. - [unknown location] at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:58) at
Time of Update: 2018-12-05
action不執行,檢查jsp頁面是不是寫的有問題,有沒有重名的name,有沒有用了不能直接賦值的變數名。比如說你的entity中有個對象為User user,jsp頁面中有個input的name名寫成了user,那就執行不了了。 補充一下:如果你在action中定義有變數xxx,類型為int,而你在要提交到該action(裡面的方法也包括)的form表單中有一個name為xxx的input,值為一個不能轉換為int的字串,也會也現這個問題。
Time of Update: 2018-12-05
參照http://blog.csdn.net/eclipser1987/article/details/6371288,eclipse上配置web直接發布到tomcat下,啟動tomcat7,出現如題異常,不解,換tomcat6,正常,看來的tomcat7將其方法start.()定義成final了。後來發現另一作者的解決方案:解決方案:將項目的tomcat設定中
Time of Update: 2018-12-05
有一個CSS3 按鈕樣式表,提供一種讓三個按鈕緊挨著的樣式,分別為“.left”、“.middle”、“.right”,結果無論怎麼試,三個按鈕中間始終留有一段空白,經檢查:沒有額外的margin和padding參數值。
Time of Update: 2018-12-05
jquery.Validation 官方網站:http://bassistance.de/jquery-plugins/jquery-plugin-validation/jquery.Validation 線上文檔:http://docs.jquery.com/Plugins/Validationjquery.Validation 線上
Time of Update: 2018-12-05
錯誤描述:@RequestMapping(value = "/index")public String index(@RequestParam(value = "action", required = false)String action, @RequestParam(value = "notIncludeTypeId", required = false)int notIncludeTypeId){ // .... 省略代碼} 當選擇性參數“notIncludeTypeId”
Time of Update: 2018-12-05
錯誤:Error creating bean with name 'userLoginDAO' defined in class path resource [applicationContext.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.my.
Time of Update: 2018-12-05
用的是struts2
Time of Update: 2018-12-05
方法:@RequestMapping(value = "/save")public String save(HttpServletResponse response){ // 跳出架構彈視窗iFrame,直接返回列表頁面PrintWriter out =
Time of Update: 2018-12-05
這個錯誤,出現在一對多關聯性對應中,一的一端配置了Cascade.PERSIST屬性(ALL當然也包括),如下面的兩個類: public class ModuleOp{private Long id;@OneToMany(mappedBy = "module", cascade=CascadeType.ALL, fetch=FetchType.EAGER) public List<ModuleOp> getOps() { return ops; }public class
Time of Update: 2018-12-05
第一步: 在Mybatis Mapper檔案中添加屬性“useGeneratedKeys”和“keyProperty”,其中keyProperty是Java對象的屬性名稱!<insert id="insert" parameterType="Spares" useGeneratedKeys="true" keyProperty="id">insert into