原创 Class cannot be resolved to a type spring4.32的junit測試報錯解決

直接上bug Class<SpringJUnit4ClassRunner> cannot be resolved to a type 看代碼 @RunWith(SpringJUnit4ClassRunner.class) @Co

原创 編寫xml文件時,The markup in the document preceding the root element must be well-formed.等bug

今天寫dtd,xml文件時,連續報bug。 The markup in the document preceding the root element must be well-formed. 錯誤原因:ELEMENT 寫成E

原创 An AnnotationConfiguration instance is required to use...等幾個異常

1.異常: An AnnotationConfiguration instance is required to use 意思是,用了註解了,自然要用註解類生成SessionFactory private static Co

原创 自定義struts2的mvc時幾個異常

D:\myeclipse\my\Common\plugins\com.genuitec.eclipse.easie.tomcat.myeclipse_9.0.0.me201211011550\tomcat\bin\mystruts

原创 Attempt to invoke virtual method int android.graphics.Bitmap.getWidth() on a null object

公司之前老項目升級:之前使用:BitmapFactory.decodeFile(path,myOptions);一直很好的,今天突然 ‘int android.graphics.Bitmap.getWidth()’ on a nu

原创 hibernate與struts2一起時的異常處理

今天項目剛將hibernate與struts2放一起。異常還不少。 ERROR StatusLogger Log4j2 could not find a logging implementation. Please add log

原创 jQuery中登錄友好提示系列(1)

先看html代碼 <form action="" method="post" id="my" > 用戶名:<input type="text" name="name1" id="user"/><span class="tip"

原创 讀取mystruts2的xml文件——dom4j讀取

先看mystruts2的xml文件: 這裏寫<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE mystruts SYSTEM "mystruts.dtd"> <mystruts>

原创 struts2中上傳,及注意問題

先看簡單的jsp頁面 <form action="fileupload.action" method="post" enctype="multipart/form-data"> <input type="file

原创 java反射調用方法時,Class . can not access a member of class . with modifiers "private" 等異常解決

先看javabean類:目的使用反射調用私有方法: package com.imooc.reflect; public class Student { private void add(){ Syste

原创 Caused by: java.sql.SQLSyntaxErrorException: ORA-00942: 表或視圖不存在,分頁等關於hibernate測試的幾個問題

今天的hibernate出現一個錯誤 1.異常。 Caused by: java.sql.SQLSyntaxErrorException: ORA-00942: 表或視圖不存在 異常很明顯。馬上想到的是數據庫連接是不是改了。我之

原创 struts的幾個小異常

ERROR org.apache.struts2.dispatcher.DefaultDispatcherErrorHandler - Exception occurred during processing request: [

原创 Mapped Statements collection does not contain value for ......

這種問題,只要知道關鍵字Mapped 就表示是映射文件出錯。在根據for後面指定的內容,就可以定位錯誤了。然後錯誤只可能是:namespace,id或者是resultType。 點贊 收藏 分享

原创 struts2的下載及注意事項

先看action類。 package actions; import java.io.BufferedInputStream; import java.io.FileInputStream; import java.io.Fil

原创 Myeclipse導出uml類圖和導出javadoc時"錯誤: 編碼GBK的不可映射字符"解決

1.Myeclipse導出uml類圖很簡單,項目-右鍵=new-UML2 mode-這時根據自己的需要添加就好了。 選擇類圖,右鍵export就可以導出,圖片格式。 2。Myeclipse導出javadoc時,如果出現編碼