JEECG V3 0 版本(jbpm5 工作流自定義+WEB UI快速開發庫+程式碼生成器) spring mvc +hi
阿新 • • 發佈:2018-11-13
分享一下我老師大神的人工智慧教程!零基礎,通俗易懂!http://blog.csdn.net/jiangjunshow
也歡迎大家轉載本篇文章。分享知識,造福人民,實現我們中華民族偉大復興!
簡要說明- JEECG V3.0版本推翻了原有SSH2架構,採用SpringMVC+Hibernate+Spring jdbc基礎架構,
採用面向宣告的開發模式,基於泛型方式編寫極少程式碼即可實現複雜的資料展示、資料編輯、表單處理等功能,
再配合程式碼生成器的使用將JavaEE的開發效率提高6倍以上,可以將程式碼減少60%以上。 - JEECG 新版主要集中三大技術點: 1.程式碼生成器 2.UI快速開發庫 3.線上流程設計
- 技術點一:程式碼生成器,支援多種資料模型,根據表生成對應的Entity,Service,Dao,Action,JSP等,增刪改查功能生成直接使用
- 技術點二:UI快速開發庫,針對WEB UI進行標準式封裝,頁面統一採用自定義標籤實現功能:列表資料展現、頁面校驗等,標籤使用簡單清晰且便於維護
- 技術點三:線上流程設計,採用開源Activiti流程引擎,實現線上畫流程,自定義表單,表單掛靠,業務流轉
- JEECG V3.0,採用SpringMVC+Hibernate+Spring jdbc等主流框架
- JEECG V3.0,經過了專業壓力測試,效能測試,保證後臺資料的準確性和頁面訪問速度
- 支援多種瀏覽器: IE, 火狐, Google 等瀏覽器訪問速度都很快
- 支援資料庫: Mysql,Oracle10g等
- 基礎許可權: 使用者,角色,選單許可權
- Web容器測試通過的有Jetty和Tomcat6
- 要求JDK1.6+
技術交流 JEECG(J2EE Code Generation)是一款基於程式碼生成器的智慧開發平臺,採用程式碼生成+手工MERGE半智慧開發模式, 可以幫助你解決Java專案中60%的重複工作,讓你更多關注業務邏輯。
JEECG宗旨:簡單功能由程式碼生成器直接生成 ; 複雜業務採用表單自定義,業務流程使用工作流來實現、擴展出任務介面,由開發書寫特殊業務邏輯
本系統由JEECG開發提供,如需要定製可與本人聯絡..
- 交流群:106259349, 106838471, 289782002
- 郵箱:[email protected]
- 論壇:www.jeecg.org
自定義標籤列表頁面程式碼示例:
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%><%@include file="/context/mytags.jsp"%>
<div class="easyui-layout" fit="true">
<div region="center" style="padding:1px;">
<t:dategrid name="jeecgDemoList" title="開發DEMO列表" actionUrl="jeecgDemoController.do?datagrid" idField="id" fit="true">
<t:dgCol title="編號" field="id" hidden="false"></t:dgCol>
<t:dgCol title="使用者名稱" field="userName" query="true"></t:dgCol>
<t:dgCol title="電話號碼" sortable="false" field="mobilePhone" width="20" query="true"></t:dgCol>
<t:dgCol title="辦公電話" field="officePhone"></t:dgCol>
<t:dgCol title="郵箱" field="email"></t:dgCol>
<t:dgCol title="年齡" sortable="true" field="age"></t:dgCol>
<t:dgCol title="工資" field="sex"></t:dgCol>
<t:dgCol title="性別" field="salary"></t:dgCol>
<t:dgCol title="生日" field="birthday" formatter="yyyy/MM/dd"></t:dgCol>
<t:dgCol title="建立日期" field="createTime" formatter="yyyy-MM-dd hh:mm:ss"></t:dgCol>
<t:dgCol title="操作" field="opt" width="100"></t:dgCol>
<t:dgFunOpt funname="szqm(id)" title="稽核" />
<t:dgDelOpt title="刪除" url="jeecgDemoController.do?del&id={id}" />
<t:dgToolBar title="錄入" icon="icon-add"></t:dgToolBar>
<t:dgToolBar title="編輯" icon="icon-edit"></t:dgToolBar>
</t:dategrid>
</div>
</div>
<script type="text/javascript">
function szqm(id) {
createwindow('稽核', 'jeecgDemoController.do?doCheck&id=' + id);
}
</script>
自定義標籤新增頁面示例
<%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<!DOCTYPE html>
<html>
<head>
<title>開發DEMO</title>
<t:base type="jquery,easyui,tools"></t:base>
</head>
<body style="overflow-y: hidden" scroll="no">
<t:formvalid formid="formobj" dialog="true" usePlugin="password" layout="table" action="jeecgDemoController.do?save">
<input id="id" name="id" type="hidden" value="${jgDemo.id }">
<table style="width: 600px;" cellpadding="0" cellspacing="1" class="formtable">
<tr>
<td align="right" width="15%" nowrap>
<label class="Validform_label">
使用者名稱:
</label>
</td>
<td class="value" width="85%">
<c:if test="${jgDemo.id!=null }">
${jgDemo.userName }
</c:if>
<c:if test="${jgDemo.id==null }">
<input id="userName" class="inputxt" name="userName"
value="${jgDemo.userName }" datatype="s2-10">
<span class="Validform_checktip">使用者名稱範圍在2~10位字元</span>
</c:if>
</td>
</tr>
<tr>
<td align="right" nowrap>
<label class="Validform_label">
手機號碼:
</label>
</td>
<td class="value">
<input class="inputxt" name="mobilePhone"
value="${jgDemo.mobilePhone}" datatype="m" errormsg="手機號碼不正確!"
ignore="ignore">
<span class="Validform_checktip"></span>
</td>
</tr>
<tr>
<td align="right">
<label class="Validform_label">
辦公電話:
</label>
</td>
<td class="value">
<input class="inputxt" name="officePhone"
value="${jgDemo.officePhone}" datatype="n"
errormsg="辦公室電話不正確!" ignore="ignore">
<span class="Validform_checktip"></span>
</td>
</tr>
<tr>
<td align="right">
<label class="Validform_label">
常用郵箱:
</label>
</td>
<td class="value">
<input class="inputxt" name="email" value="${jgDemo.email}"
datatype="e" errormsg="郵箱格式不正確!" ignore="ignore">
<span class="Validform_checktip"></span>
</td>
</tr>
<tr>
<td align="right">
<label class="Validform_label">
年齡:
</label>
</td>
<td class="value">
<input class="inputxt" name="age" value="${jgDemo.age}"
datatype="n" errormsg="年齡格式不正確!" ignore="ignore">
<span class="Validform_checktip"></span>
</td>
</tr>
<tr>
<td align="right">
<label class="Validform_label">
工資:
</label>
</td>
<td class="value">
<input class="inputxt" name="salary" value="${jgDemo.salary}"
datatype="d" errormsg="工資格式不正確!" ignore="ignore">
<span class="Validform_checktip"></span>
</td>
</tr>
<tr>
<td align="right">
<label class="Validform_label">
生日:
</label>
</td>
<td class="value">
<input name="birthday" class="easyui-datebox"
value="<fmt:formatDate value='${jgDemo.birthday }' type="date"/>"
errormsg="生日格式不正確!" ignore="ignore">
<span class="Validform_checktip"></span>
</td>
</tr>
<tr>
<td align="right">
<label class="Validform_label">
建立日期:
</label>
</td>
<td class="value">
<input name="createTime" class="easyui-datetimebox"
value="${jgDemo.createTime}"
errormsg="日期格式不正確!" ignore="ignore">
<span class="Validform_checktip"></span>
</td>
</tr>
<tr>
<td align="right">
<label class="Validform_label">
性別:
</label>
</td>
<td class="value">
<t:comboBox url="jeecgDemoController.do?combox" name="sex" text="userName" id="id"></t:comboBox>
<span class="Validform_checktip"></span>
</td>
</tr>
<tr>
<td align="right">
<label class="Validform_label">
部門:
</label>
</td>
<td class="value">
<select id="depId" name="depId" datatype="*">
<c:forEach items="${departList}" var="depart">
<option value="${depart.id }" <c:if test="${depart.id==jgDemo.depId}">selected="selected"</c:if>>
${depart.departname}
</option>
</c:forEach>
</select>
<span class="Validform_checktip">請選擇部門</span>
</td>
</tr>
</table>
</t:formvalid>
</body>