JEECG v_3.5.2 ACE版本 开发入门环境搭建文档(Maven版)
一、开发前准备1、tomcat 下载
2、jdk 下载
3、mysql 下载
4、eclipse 下载 建议下载 Helios系列版本的 Eclipse Java EE IDE for Web Developers
5、m2eclipse 与maven 下载
非常重要:JEECG Maven镜像官方配置,让mvn时飞的感觉http://t.cn/RJCp7wO
6、下载JEECG maven本地依赖的类库
http://git.oschina.net/jeecg/jeecg-local-maven
7、下载JEECG源码
备注:开发环境工具在下面的网盘里也有
http://pan.baidu.com/s/1pJE9DN1 密码: i7jd
二、开发环境安装配置
1、安装jdk mysql tomcat eclipse
具体安装方法不做详细说明
注意:配置jdk的环境变量 JAVA_HOME /PATH /CLASSPATH
2、eclipse环境配置
(1)、安装m2eclipse 插件
1>检查是否安装m2eclipse
2> 没有安装则需要安装m2eclipse
网盘里有m2eclipse 下载离线安装
Help-->Install New Software--->Add
选择要安装的m2eclipse安装包 进行安装
(2)配置maven
1>解压maven包 例如到如下路径 D:\apache-maven-3.0.4
2>配置maven环境变量
3>解压 maven本地依赖类库 JEECG-repository.rar 例如 D:\JEECG-repository
4>配置maven setting.xml (D:\apache-maven-3.0.4\conf目录下)
非常重要:JEECG Maven镜像官方配置,让mvn时飞的感觉http://t.cn/RJCp7wO
5>eclipse配置maven 如下图
第一步
第二步
第三步
OK!!!!!
(3)配置jdk
第一步
OK!!!!!
(4)配置tomcat
OK!!!!!
三、项目导入与启动
1、导入JEECG工程
(1)解压JEECG源码到workspace
(2)eclipse导入maven工程
2、mysql数据库创建与项目中dbconfig.properties 配置相同名称的数据库 并执行初始化脚本
3、maven的方式启动项目
(1)选中项目工程目录 点击右键 ,选择Run As 配置启动参数
出现如下界面启动完成。
4、打开浏览器 输入地址http://localhost:8080/jeecg/
进入系统登录页面
对于新手来说 说的有点简单了 搭建之后,登录页出来了,点击登录报HTTP Status 500 错误,有人知道是什么情况? 不会用maven.....
没部署出来.......
求maven教程 java.lang.NullPointerException
jodd.util.StringUtil.replace(StringUtil.java:35)
org.jeecgframework.tag.core.easyui.BaseTag.doEndTag(BaseTag.java:71)
org.apache.jsp.webpage.main.shortcut_005fmain_jsp._jspx_meth_t_005fbase_005f0(shortcut_005fmain_jsp.java:536)
org.apache.jsp.webpage.main.shortcut_005fmain_jsp._jspService(shortcut_005fmain_jsp.java:115)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:439)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:395)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:339)
javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
org.springframework.web.servlet.view.InternalResourceView.renderMergedOutputModel(InternalResourceView.java:238)
org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:262)
org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1180)
org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:950)
org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:852)
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:882)
org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:778)
javax.servlet.http.HttpServlet.service(HttpServlet.java:624)
javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
org.jeecgframework.core.aop.GZipFilter.doFilter(GZipFilter.java:49)
com.alibaba.druid.support.http.WebStatFilter.doFilter(WebStatFilter.java:140)
org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
org.springframework.orm.hibernate4.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:119)
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76) 前面步骤都执行通过了,就在run as maven build的地方构建版本时出错。是什么原因啊?
Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:2.6:resources (default-resources) on project jeecg: Execution default-resources of goal org.apache.maven.plugins:maven-resources-plugin:2.6:resources failed: Plugin org.apache.maven.plugins:maven-resources-plugin:2.6 or one of its dependencies could not be resolved: The following artifacts could not be resolved: org.apache.maven:maven-plugin-api:jar:2.0.6, org.apache.maven:maven-project:jar:2.0.6, org.apache.maven:maven-profile:jar:2.0.6, org.apache.maven:maven-artifact-manager:jar:2.0.6, org.apache.maven:maven-plugin-registry:jar:2.0.6, org.apache.maven:maven-core:jar:2.0.6, org.apache.maven:maven-plugin-parameter-documenter:jar:2.0.6, org.apache.maven:maven-repository-metadata:jar:2.0.6, org.apache.maven:maven-error-diagnostics:jar:2.0.6, org.apache.maven:maven-plugin-descriptor:jar:2.0.6, org.apache.maven:maven-artifact:jar:2.0.6, org.apache.maven:maven-settings:jar:2.0.6, org.apache.maven:maven-model:jar:2.0.6, org.apache.maven:maven-monitor:jar:2.0.6, org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9-stable-1: Cannot access central (https://repo.maven.apache.org/maven2) in offline mode and the artifact org.apache.maven:maven-plugin-api:jar:2.0.6 has not been downloaded from it before. ->
To see the full stack trace of the errors, re-run Maven with the -e switch.
Re-run Maven using the -X switch to enable full debug logging.
For more information about the errors and possible solutions, please read the following articles:
http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException
用上了平台,挺不错的,成功完成了单表的多表的增删改查,有个问题,就是3.5.2按钮权限不起作用。
我设置了配置文件button.authority.jeecg=true,然后再JSP页面里面填写了operationCode属性,并且在菜单里面添加了相应的按钮权限,但是不起作用 feng2212 发表于 2015-6-26 08:37 static/image/common/back.gif
前面步骤都执行通过了,就在run as maven build的地方构建版本时出错。是什么原因啊?
Failed to e ...
同样的问题,求解。 按照上面的搭建了,运行报错:No plugin found for prefix 'tomcat' in the current project and in the plugin groups available from the repositories http://repository.apache.org/content/groups/snapshots-group/), central (http://repo.maven.apache.org/maven2)] ->
:dizzy: 顶
要顶
必须顶
不得不顶
用尽全力顶
再加上千斤顶
总之把它顶到顶
接着使出葵花宝顶
就算顶到史前也要顶
老子看了会用道德经顶
孔子亲自拜你为师天天顶
秦始皇站在阿房宫上使劲顶
汉高祖挥师杀向东罗马为你顶
吕布抛弃了貂禅而选择了帮你顶
张三丰见了后用太极拳九式全力顶