開發中碰到的幾個問題

2021-08-29 21:30:50 字數 941 閱讀 5181

1、

碰到異常:

servlet.service() for servlet action threw exception

org.springframework.dao.invaliddataaccessapiusageexception:

write operations are not allowed in read-only mode (flushmode.never/manual):

turn your session into flushmode.commit/auto or remove 'readonly' marker from transaction definition.

分析解決:

行定義了所有service層可執行資料更新操作的方法規範,必須限於已規定的幾個方法名內;

2、在hibernate的級聯查詢中的排序問題,hibernate annotation @orderby

如下所示:

@onetomany(fetch = fetchtype.lazy)

@joincolumn(name = "tem_id", insertable = false, updatable=false)

@orderby("playorder asc")

public listgetassetlist()

3、帶引數的actionforward**

string returnforward = "/***x.do" + "?method=listallsub&detail_id=" + detail_id

+"&pane_id="+pane_id;

return new actionforward(returnforward);

mysql碰到的幾個問題

create table user username varchar 16 not null primary key,passwd char 16 not null,admin enum no yes not null 此表正確。create table user username varchar ...

c 碰到的幾個問題

這些問題都是沒有考慮到cpu和記憶體極限所引起來的。1 記憶體不夠時,new會引起異常 至少我電腦上vs2008是直接崩潰,而不是返回null 要返回null,如下使用 frame audio frame new std nothrow frame audio 或者 frame audio fram...

lfs製作中碰到的幾個問題

1.現象 重新啟動後無法找到root檔案系統 原因 核心不能識別串列埠硬碟 解決 更改核心編譯引數,重新生成核心後ok 2.現象 終端出現亂碼 原因 lang設定為了zh cn.gb18030 解決 修改lang為 zh cn.utf8 3.現象 mount sd卡提示無法找到iso8859 1字符...