原创 cannot read property 'options' of underfined

在easyui中初始化  加載加datagrid就好了。如下, <script> $(function(){ initDatagrid(); //初始化四種形態 initDatagrid2();//已提交保送信息 window.

原创 sun.misc.BASE64Encoder找不到的解決方法

byte[] before=new byte[] { (byte)0xf0,0x45,0x00,0x01,0x30,0x31,0x6e,0x31,0x63,0x74,0x6a,0x78,0x62,0x38,0x65,0x74,0x73,

原创 java獲取請求ip地址

public class IPUtil { /** * 獲取IP * @param request * @return */ public static String getIP(HttpServletRequest

原创 Redis的那些最常見面試問題

1.什麼是redis? Redis 是一個基於內存的高性能key-value數據庫。  2.Reids的特點   Redis本質上是一個Key-Value類型的內存數據庫,很像memcached,整個數據庫統統加載在內存當中進行操作,定期

原创 web.xml文件的作用

每個javaEE工程中都有web.xml文件,那麼它的作用是什麼呢?它是每個web.xml工程都必須的嗎?  一個web中可以沒有web.xml文件,也就是說,web.xml文件並不是web工程必須的。  web.xml文件是用來初始化配

原创 Write operations are not allowed in read-only mode (FlushMode.MANUAL)

org.springframework.dao.InvalidDataAccessApiUsageException: Write operations are not allowed in read-only mode (FlushM

原创 Unable to locate appropriate constructor on class

 在使用hql的時候,有時候查詢的結果不需要所有字段只是部分字段,於是做如下修改。 String hql = "select new TForm4Notice(id,title) from TForm4Notice where isPu

原创 js中的事件委託或是事件代理詳解

參考文章  

原创 如何獲取生產環境最新的腳本備份

生產環境一般爲了數據安全考慮,每天都會生成一個備份的腳本,像下面這樣,大多是凌晨備份的(這個時候數據庫數據變化較小)。     剛開始我想模擬生產環境,所以把生產的數據拷貝了一份,在我本地跑了一下,可是在測試的時候發現,數據還不是最新的

原创 vmware網絡的三種連接方式

vmware網絡的連接方式分爲三種:橋接,NAT,Host-only。(當我們安裝完VMware WorkStation的時候,它會幫我們安裝兩塊虛擬網卡,分別是vmnet1,和vmnet8。vmnet1對應於Host-only, vmn

原创 Ambiguous mapping. Cannot map 'XXXXXController' method

六月 15, 2018 11:30:12 上午 org.apache.catalina.core.StandardWrapperValve invoke 嚴重: Allocate exception for servlet Dispatc

原创 CREATE TABLE 表名 AS SELECT 語句

1.新表不存在 複製表結構即數據到新表 create table new_table select * from old_talbe;   這種方法會將old_table中所有的內容都拷貝過來,用這種方法需要注意,new_table中

原创 easyui設置easyui-combobox下拉框高度

<select class="easyui-combobox" name="businessMy" id="businessMy" style="width:300px;" data-options="editable:false,pa

原创 Failed to create the part's controls

切換到別的工作空間,再切回來就可以了。原因可能是頁面或代碼裏有註釋 但是沒有生效,造成了編譯沒有通過。

原创 Unable to compile class for JSP

type Exception report message Unable to compile class for JSP: description The server encountered an internal error t