數(shù)據(jù)庫常用類
C端(靜態(tài)):
HYPubBO_Client
B端:
HYPubBO bo = new HYPubBO();
調用接口查詢:
IBillQueryService query = NCLocator.getInstance().lookup(IBillQueryService.class);
前后端通用DAO:
BaseDAO dao = new BaseDAO();
彈窗類
import nc.ui.uif2.ShowStatusBarMsgUtil;
ShowStatusBarMsgUtil.showErrorMsg("標題", "這是正文", this.getModel().getContext());
import nc.ui.pub.beans.MessageDialog;
MessageDialog.showErrorDlg(null, "標題","這是正文");
異常提示類
import nc.vo.pubapp.pattern.exception.ExceptionUtils;
ExceptionUtils.wrappBusinessException("數(shù)據(jù)庫查詢異常");
刪除JAVA注釋正則
刪除 java 注釋 /* */:? ?/\*{1,2}[\s\S]*?\*/
刪除 java 注釋 //:? ? ?//[\s\S]*?\n
刪除空白行:^\s*\n
端口占用
netstat ? -ano|findstr ?8080?
顯示占用端口的進程
taskkill ?/pid ?6856 ?/f?