1 Star 0 Fork 262

duwang / emsite

forked from super_empire / emsite 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
Apache-2.0

emsite-parent 【技术QQ群:456742016】

框架简介

  • emsite框架是众多是基于众多优秀的开源项目,高度整合封装而成的高效,高性能,强安全性的开源Java EE分布式全自动快速开发框架平台。 本项目参照jeesite、springside、jeesz等框架思想实现并从此不再兼容jeesite所有版本。
  • emsite目前包括以下三大模块,系统管理(SYS)模块、内容管理(CMS)模块、代码生成(GEN)模块。系统管理模块,包括组织架构(用户 管理、机构管理、区域管理)、菜单管理、角色权限管理、字典管理等功能; 内容管理模块 ,包括内容管理(文章、链接),栏目管理、站点 管理、公共留言、文件管理、前端网站展示等功能;代码生成模块,完成重复的工作。

框架规划

  • emsite采用dubbo作为服务层框架,后台将集成单点登录、oauth2.0、storm+kafka消息处理系统、kafka+ flume+storm+hdfs+hadoop作 为日志分析系统、配置中心、分布式任务调度系统、服务器实时监控系统、搜索引擎系统(elasticsearch)。以上各大功能将作为模块化集成到 本项目,emipre团队后期将推出在线客服开源系统和统一微信公众号管理平台,敬请期待!

内置功能

1、用户管理:用户是系统操作者,该功能主要完成系统用户配置。
2、机构管理:配置系统组织机构(公司、部门、小组),树结构展现,可随意调整上下级。
3、区域管理:系统城市区域模型,如:国家、省市、地市、区县的维护。
4、菜单管理:配置系统菜单,操作权限,按钮权限标识等。
5、角色管理:角色菜单权限分配、设置角色按机构进行数据范围权限划分。
6、字典管理:对系统中经常使用的一些较为固定的数据进行维护,如:是否、男女、类别、级别等。
7、操作日志:系统正常操作日志记录和查询;系统异常信息日志记录和查询。
8、连接池监视:监视当期系统数据库连接池状态,可进行分析SQL找出系统性能瓶颈。

为何选择emsite

1、使用 Apache License 2.0 协议,源代码完全开源,无商业限制。
2、使用目前主流的Java EE开发框架,简单易学,学习成本低。
3、数据库无限制,目前支持MySql、Oracle,可扩充SQL Server、PostgreSQL、H2等。
4、模块化设计,层次结构清晰。内置一系列信息管理的基础功能。
5、操作权限控制精密细致,对所有管理链接都进行权限验证,可控制到按钮。
6、数据权限控制精密细致,对指定数据集权限进行过滤,七种数据权限可供选择。
7、提供在线功能代码生成工具,提高开发效率及质量。
8、提供常用工具类封装,日志、缓存、验证、字典、组织机构等,常用标签(taglib),获取当前组织机构、字典等数据。
9、兼容目前最流行浏览器(IE7+、Chrome、Firefox)。
10、最流行的分布式解决方案。

技术选型

1、后端

a、核心框架:Spring Framework 4.1.9
b、分布式服务框架:dubbo2.5.8
c、分布式协调组件:zookeeper3.4.6
d、安全框架:Apache Shiro 1.2
e、视图框架:Spring MVC 4.1
f、服务端验证:Hibernate Validator 5.2
g、布局框架:SiteMesh 2.4
h、任务调度:Spring Task 4.1
i、持久层框架:MyBatis 3.2
j、数据库连接池:Alibaba Druid 1.0
k、缓存框架:Ehcache 2.6、Redis
l、日志管理:SLF4J 1.7、Log4j
m、工具类:Apache Commons、Jackson 2.2、Xstream 1.4、Dozer 5.3、POI 3.9

2、前端

a、JS框架:jQuery 1.9。
b、CSS框架:Twitter Bootstrap 2.3.1(稳定是后台,UI方面根据需求自己升级改造吧)。
c、客户端验证:JQuery Validation Plugin 1.11。
d、富文本在线编辑:CKEditor
e、在线文件管理:CKFinder
f、动态页签:Jerichotab
g、手机端框架:Jingle
h、数据表格:jqGrid
i、对话框:jQuery jBox
j、下拉选择框:jQuery Select2
k、树结构控件:jQuery zTree
l、日期控件: My97DatePicker

4、平台

a、服务器中间件:在Java EE 5规范(Servlet 3.0、JSP 2.1)下开发,支持应用服务器中间件 有Tomcat 7+、Jboss 7+、
   WebLogic 10+、WebSphere 8+。
b、数据库支持:目前仅提供MySql或Oracle数据库的支持,但不限于数据库,平台留有其它数据库支持接口, 你可以很方便
   的更改为其它数据库,如:SqlServer 2008、MySql 5.5、H2等
c、开发环境:Jdk1.7、(Eclipse Java EE 4.3|sts-3.6.2.RELEASE|myeclipse10)、Maven 3.2、Git

安全考虑

a、开发语言:系统采用Java 语言开发,具有卓越的通用性、高效性、平台移植性和安全性。
b、分层设计:(数据库层,数据访问层,业务逻辑层,展示层)层次清楚,低耦合,各层必须通过接口才能接入并进行参数校
   验(如:在展示层不可直接操作数据库),保证数据操作的安全。
c、双重验证:用户表单提交双验证:包括服务器端验证及客户端验证,防止用户通过浏览器恶意修改(如不可写文本域、隐藏
   变量篡改、上传非法文件等),跳过客户端验证操作数据库。
d、安全编码:用户表单提交所有数据,在服务器端都进行安全编码,防止用户提交非法脚本及SQL注入获取敏感数据等,确保数据安全。
e、密码加密:登录用户密码进行SHA1散列加密,此加密方法是不可逆的。保证密文泄露后的安全问题。
f、强制访问:系统对所有管理端链接都进行用户身份权限验证,防止用户
g、服务监控:系统采用dubbo的服务全链路监控技术、可以做到精准定位服务情况

快速体验

a、具备运行环境:JDK1.7+、Maven3.0+、MySql5+或Oracle10g+。
b、下载emsite-parent项目,导入第三方ckfinder插件jar包到本地maven库
c、修改src\main\resources\emsite.properties文件中的数据库设置参数。
d、根据修改参数创建对应MySql或Oracle数据库用户和参数。
e、新建数据库emsite[字符集utf8 -- UTF-8 Unicode,排序规则utf8-bin],运行bin\init-db.bat脚本,即可导入表结构及演示数
   据(linux操作系统:在控制台中切换至项目根目录,运行命令:mvn antrun:run -Pinit-db);或者直接在数据库工具中运行emsite 
   web项目bin目录下的emsite_mysql.sql文件。
f、启动redis,zookeeper组件
g、启动emsite-service-dbs数据服务层项目,使用eclipse maven启动命令:clean  tomcat7:run
h、运行bin\run-tomcat7.bat或bin\run-jetty.bat,启动Web服务器(第一次运行,需要下载依赖jar包,请耐心等待)。
i、最高管理员账号,用户名:emsite 密码:admin  

常见问题

a、用一段时间提示内存溢出,请修改JVM参数:-Xmx512m -XX:MaxPermSize=256m
b、有时出现文字乱码:修改Tomcat的server.xml文件的Connector项,增加URIEncoding="UTF-8"
c、为什么新建菜单后看不到新建的菜单?因为授权问题,菜单管理只允许最高管理员账号管理(最高管理员默认账号:emsite密码:admin)。 
d、第三方ckfinder导入方案
   mvn install:install-file -DgroupId=com.ckfinder -DartifactId=ckfinder   -Dversion=2.3 -Dpackaging=jar -        
   Dfile=D:/thirdxsd/ckfinder-2.3.jar

   mvn install:install-file -DgroupId=com.ckfinder -DartifactId=ckfinderplugin-fileeditor -Dversion=2.3 -Dpackaging=jar -
   Dfile=D:/thirdxsd/ckfinderplugin-fileeditor-2.3.jar

   mvn install:install-file -DgroupId=com.ckfinder -DartifactId=ckfinderplugin-imageresize -Dversion=2.3 -Dpackaging=jar -    
   Dfile=D:/thirdxsd/ckfinderplugin-imageresize-2.3.jar

e、maven报错Project configuration is not up-to-date with pom.xml错误解决方法(导入项目之后发现有一个如下的错误:Project     
   configuration is not up-to-date with pom.xml. Run project configuration)    
   update
   其实这个问题解决非常简单:
   在项目上右键——【Maven】——【Update Project Configuration……】
   这时会打开一个(Update Maven Dependencies)的对话框,然后勾选住出错的项目,点击Ok,这样就搞定了。

项目结构如下:

输入图片说明

运行效果:

输入图片说明 输入图片说明 输入图片说明 输入图片说明

Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. "Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. "You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. "Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. "Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. "Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). "Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. "Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution." "Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. 2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. 3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. 4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: You must give any other recipients of the Work or Derivative Works a copy of this License; and You must cause any modified files to carry prominent notices stating that You changed the files; and You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. 5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. 6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. 8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. 9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. END OF TERMS AND CONDITIONS APPENDIX: How to apply the Apache License to your work To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "{}" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives. Copyright 2017 hackking Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

简介

平台简介: emsite框架是一个分布式的后台全自动快速开发框架,参照jeesite3.0实现并从此不再兼容jeesite所有版本,对于想要使用单机版系统的同学请到jeesite项目拉取代码。emsite采用dubbo作为服务层框架,后台将集成单点登录、oauth2.0、storm+kafka消息处理系统、kafka+ flume+storm+hdfs+hadoop作为日志分析系统、配置中心、分布式任务调度系统、服务器实时监控系统、搜索引擎系统(elasticsearch)。以上各大功能将作为模块化集成到本项目,emipre团队后期将推出全渠道智能在线客服开源系统和统一微信公众号管理平台,敬请期待!另外本项目参考了jeesz、jeesite、springside等开开源项目,本人诚挚的... 展开 收起
Java
Apache-2.0
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
Java
1
https://gitee.com/duwang1104/emsite-parent.git
git@gitee.com:duwang1104/emsite-parent.git
duwang1104
emsite-parent
emsite
master

搜索帮助