常见问题Q&A
在线文档
2.0最新文档
1.1 文档
1.0 文档
更多材料
新手入门
版本日志
源码下载
视频教程
JEECG老版常见问题: 点击进入
JEECG老版在线文档: 点击进入
1、后盾拜访提醒token谬误
报错截图:
解决方案: JeecgBoot后盾的所有申请拜访,减少了token机制,所以不能间接拜访后盾,而须要通过前台登录能力拜访
默认前台拜访地址: http://localhost:3000 我的项目启动教程(前台+后盾)请看:http://doc.jeecg.com/2043874
2、Lombok 的应用
问题成果: 实体没有get/set办法
解决方案:
因为通过Lombok 简化了代码,默认没有get set。 须要留神: eclipse默认不反对Lombok 须要独自装置,装置参考: [https://blog.csdn.net/qq_25646191/article/details/79639633](https://blog.csdn.net/qq_25646191/article/details/79639633)
3、Druid监控
拜访:http://localhost:8080/jeecg-boot/druid
登录名:admin,明码123456
4、在线接口文档swagger
http://localhost:8080/jeecg-boot/doc.html
http://localhost:8080/jeecg-boot/swagger-ui.html 登录名:jeecg,明码jeecg1314
5、我的项目拜访根门路 jeecg-boot 如何批改
目前我的项目后盾拜访默认门路是: http://localhost:8080/jeecg-boot
默认端口: 8080
默认我的项目名: jeecg-boot
如果须要自定义能够批改配置文件: src/main/resources/application.yml
server: port: 8080 servlet: context-path: /jeecg-boot
对应须要批改前端配置文件,搜寻jeecg-boot 替换成新我的项目名字。
ant-design-jeecg-vue/src/utils/request.jsant-design-jeecg-vue/public/index.htmlant-design-jeecg-vue/vue.config.js
非凡点:online模块打包JS中我的项目名写死了 jeecg-boot问题
https://github.com/zhangdaiscott/jeecg-boot/issues/467
6、获取登录用户信息(留神: 此处有降级变更)
V2.0版本:LoginUser sysUser = (LoginUser)SecurityUtils.getSubject().getPrincipal();V1.1版本:SysUser sysUser = (SysUser)SecurityUtils.getSubject().getPrincipal();
6.1 通过token获取用户信息办法
阐明: 如果你的申请排除了shiro拦截器,通过6的形式获取不到用户信息,这个时候能够通过token解析获取用户名,通过用户账号查询数据库,获取用户信息。
org.jeecg.common.system.util.JwtUtil.getUsername(token)
7、代码生成器怎么用?
http://doc.jeecg.com/2043916
(如果提醒表不存在,把把数据库设置成不辨别大小写)
8、开发环境问题
可能会遇到截图问题
解决方案: 换个eclipse4.6以上+ jdk8
9. 代码生成器依赖包下载不来
请参考jeecg的形式配置Maven镜像 http://doc.jeecg.com/2043876
10. 提醒表不存在问题Table 'jeecg-boot.QRTZ_LOCKS' doesn't exist
谬误截图:
解决方案 : 1. 确认是否初始化了数据库脚步 2. 确认mysql数据库是否辨别大小写
11.Jeecg-boot 繁难部署计划,能够不必nginx (有点问题,不倡议)
https://blog.csdn.net/u010419475/article/details/88548083
12. 免登陆配置,后盾勾销token验证机制
批改配置文件:org.jeecg.config.ShiroConfig的办法shiroFilter,排除你的申请。
针对前台的页面,必须手工配置路由
ant-design-jeecg-vue/src/config/router.config.js
在底部constantRouterMap配置外面加上你要拜访的路由配置
shiro拦截器与url匹配规定 https://jeecg.blog.csdn.net/article/details/104950528
13. 前端启动报JS谬误 13. 前端启动报JS谬误
如图:
解决方案:
正文掉代码:
//instance as axios
14.增加用户无奈提交(无奈下拉)
https://github.com/zhangdaiscott/jeecg-boot/issues/34
15.新版1.1单表代码生成报错问题
删除 Modal__Style@Drawer.vuei 后缀文件
https://github.com/zhangdaiscott/jeecg-boot/issues/46
16.更改角色权限的时候,报错Error: timeout of 6000ms exceeded
http://bbs.jeecg.com/forum.php?mod=viewthread&tid=7912&extra=page%3D1
17.路由传参的菜单配置
[http://doc.jeecg.com/2043934](http://doc.jeecg.com/2043934)
18. 启动报邮箱谬误
批改计划:
- 把邮箱配置改成实在的。
- 不须要此性能,能够临时正文掉
19. jeecg-boot间接拜访报错
截图:
阐明: 此地址http://localhost:8080/jeecg-boot/不能间接拜访,截图无问题,因为后盾默认加了token机制,如果你想拜访后盾某个申请,请在shrio配置文件排除后,才可拜访地址。
比方:在线接口文档曾经排除了,能够拜访
http://localhost:8080/jeecg-boot/doc.html 登录名 jeecg / 明码jeecg1314
配置文件: org.jeecg.config.ShiroConfig
20. V1.1降级到V2.0留神,有以下不兼容中央,须要本人批改
- 用户列表无编辑按钮,编辑提醒无权限
2. 非admin用户,角色受权、部门、用户等操作提醒无权限 3. 提醒 Parameter useId not found (SysAnnouncementMapper的userid找不到) 4. Type definition error: [simple type, class org.jeecg.modules.system.model.SysUserDepartsVO]无结构器问题 5. oracle下部门数据列表是空问题 6. 零碎布告提醒资源找不到问题 7. 类别统计报表菜单删除,此性能是测试未齐全实现 8. 部门治理怎么增加子部门: 选中部门,鼠标右键,增加子部门或删除子部门 9. 老菜单拜访404,因为V2.0版本,菜单减少了一个类型“是否路由”,请设置“是” 10. 我的项目打可执行jar包,短少maven plugin插件的问题 11. 增加新菜单拜访404问题解决,设置菜单路由类型默认值“是”
21. V2.0公布后,发现一些bug曾经解决并上传了Github,上传日期:2019-05-28 。问题清单如下:
- 用户列表无编辑按钮,编辑提醒无权限
2. 非admin用户,角色受权、部门、用户等操作提醒无权限 3. 提醒 Parameter useId not found (SysAnnouncementMapper的userid找不到) 4. Type definition error: [simple type, class org.jeecg.modules.system.model.SysUserDepartsVO]无结构器问题 5. oracle下部门数据列表是空问题 6. 零碎布告提醒资源找不到问题 7. 类别统计报表菜单删除,此性能是测试未齐全实现 8. 部门治理怎么增加子部门: 选中部门,鼠标右键,增加子部门或删除子部门 9. 老菜单拜访404,因为V2.0版本,菜单减少了一个类型“是否路由”,请设置“是” 10. 我的项目打可执行jar包,短少maven plugin插件的问题 11. 增加新菜单拜访404问题解决,设置菜单路由类型默认值“是”
22.登录 http://localhost:3000/ 前端,显示登录已过期
https://blog.csdn.net/ladymorgana/article/details/90405136
23.如何切换oracle\sqlserver数据库
http://doc.jeecg.com/2043877
24.前端我的项目报错
截图:
解决方案:
降级node版本,把依赖node_modules删了,从新yarn install(留神: 请用yarn或者cnpm,不要用npm)
25. 异样: org.apache.ibatis.binding.BindingException: Parameter 'userId' not found
https://blog.csdn.net/ladymorgana/article/details/90404099
26.通用mybatis-plus逻辑删除计划
https://github.com/zhangdaiscott/jeecg-boot/issues/112
27.编程关上新菜单tab
https://github.com/zhangdaiscott/jeecg-boot/issues/160
28. 前端我的项目报错 compilation.templatesPlugin is not a function的谬误
解决方案:不必要npm run 换 yarn install 或者cnpm install,再启动我的项目就好了
起因:https://www.imooc.com/article/23555?block_id=tuijian_wz
29.前端我的项目报错:win7 install node-sass出错,提醒not found: python2
https://segmentfault.com/q/1010000009068215/a-1020000009069621
30. 前端环境报错: Node Sass does not yet support your current environment: Windows 64-bit问题解决办法
https://blog.csdn.net/weixin_44446298/article/details/88533280
31. 后盾启动报错: No bean of type 'org.apache.shiro.realm.Realm' found.
Please create bean of type 'Realm' or add a shiro.ini in the root classpath (src/main/resources/shiro.ini) or in the META-INF folder (src/main/resources/META-INF/shiro.ini).
解决方案: 请clean我的项目
32.如何退出saas多租户模式
https://github.com/zhangdaiscott/jeecg-boot/issues/166
33. 国际化革新计划
http://doc.jeecg.com/2043980
34. 前端JS代码调试办法
https://github.com/zhangdaiscott/jeecg-boot/issues/295
35.零碎查问默认改成含糊查问
https://github.com/zhangdaiscott/jeecg-boot/issues/215
36.字典注解@dict注解只针对返回类型为IPage的才失效
https://github.com/zhangdaiscott/jeecg-boot/issues/287
37.如何通过自定义异样,返回不同代码
https://gitee.com/jeecg/jeecg-boot/issues/IYF3X#note_1924868
38.jeecg-boot如何新建module模块?
https://my.oschina.net/u/3903209/blog/3083399?tdsourcetag=s_pctim_aiomsg
39. AutoPOI (Excel和 Word繁难工具类) 源码下载地址
如果excel导出导入有问题,须要源码调试,能够通过上面链接,下载源码
[https://github.com/zhangdaiscott/autopoi](https://github.com/zhangdaiscott/autopoi)
40.reids缓存报错问题
报错: java.lang.ClassCastException: org.jeecg.modules.demo.test.entity.JeecgDemo cannot be cast to org.jeecg.modules.demo.test.entity.JeecgDemo
http://bbs.jeecg.com/forum.php?mod=viewthread&tid=8186&extra=page%3D1
41. 打包遇到org.jeecgframework.boot:jeecg-boot-base-common:jar:2.0.2 is missing, no dependency information
请install 父我的项目 jeecg-boot-parent
42. j-editable-table 控件中获取行号
https://github.com/zhangdaiscott/jeecg-boot/issues/402
43. online表单性能如何配置到菜单上
https://github.com/zhangdaiscott/jeecg-boot/issues/470
44. online模块打包JS中我的项目名写死了 jeecg-boot问题
https://github.com/zhangdaiscott/jeecg-boot/issues/467
45.Viser X轴数据太多的时候,呈现 X轴内容显示不全的问题
https://blog.csdn.net/sinat_19528249/article/details/100436288
46. JeecgBoot 2.1+版本提供的脚步要求Mysql5.7,须要低版本须要本人手调整脚步了
如果用低版本数据库执行脚步会报上面的错
47.war包部署tomcat报错 websocket
https://blog.csdn.net/qq_18649209/article/details/79529434
48.两个带参数路由菜单专用一个VUE页面问题 #542
https://github.com/zhangdaiscott/jeecg-boot/issues/542
49.路由name如何定义的?
答复:
- 如果自定义了路由组件名,则采纳自定义名;
未定义路由name (通过URL生成路由name,路由name供前端开发,页面跳转应用)
具体逻辑参考代码: org.jeecg.modules.system.controller.SysPermissionController#getPermissionJsonObject
https://github.com/zhangdaiscott/jeecg-boot/issues/669
50.JEditableTable是否将字段暗藏
https://github.com/zhangdaiscott/jeecg-boot/issues/703
51.如何配置不被登录拦挡的路由?
src/config/router.config.js
在这个文件配置路由
52.mybatis-plus更新字段的时候设置为null,疏忽实体null判断
https://blog.csdn.net/qq_39403545/article/details/85334250
53.前端我的项目编译大,正式部署拜访慢解决办法
解决方案: nginx 开启压缩,进步首页拜访效率
https://github.com/zhangdaiscott/jeecg-boot/issues/88
54.TOKEN超时工夫批改
org.jeecg.common.system.util.JwtUtil#EXPIRE_TIME
55.版本升级办法?
JeecgBoot属于平台级产品,每次降级改变内容较多,目前做不到平滑降级。
这里给用户的降级倡议是这样的: 本地版本通过svn或者git做好骨干,在业务分支上开发业务代码,jeecg每次版本公布,能够手工笼罩骨干的代码,比照代码进行提交,针对数据库咱们每次发布会提供增量降级SQL,能够通过增量SQL实现数据库的降级。
56.Online表单开发没有SQL加强按钮
须要手工创立一个按钮,给用户的角色受权
57.ERROR in Cannot findmodule 'node-sass'
解决办法: 执行命令 cnpm install node-sass@latest
https://blog.csdn.net/Nalaluky/article/details/82598300
58. 如果实现手工编码表单详情页面,实现禁用所有的组件
https://github.com/zhangdaiscott/jeecg-boot/issues/1027
59.如何自定义首页
https://gitee.com/jeecg/jeecg-boot/issues/I1J75V
只改选件,不要改申请,改申请会出问题
60.前端获取以后登录用户信息(用户账号、登录所用部门)
store.getters.userInfo
61.logback-spring.xml配置不生成新日志文件
https://jeecg.blog.csdn.net/article/details/105674502
62. vue.js 进行初始化遇到的对于core-js的谬误@core-js/modules/es6.array.find-index]
core-js版本太高装置了淘宝镜像就能够cnpm install core-js@2
相干参考链接
https://github.com/vuejs/vue-...
63. 启动报错 babel eslint TypeError: Cannot read property 'range' of null
cnpm i babel-eslint@7.2.3
参考链接
64.yarn install报错No git binary found
计划一:请切换命令 cnpm install
计划二: 删除markdown插件 tui-editor
批改波及文件
65.公布后,Online表单同步数据库报错 Could not parse mapping document: null
https://github.com/zhangdaiscott/jeecg-boot/issues/1024
java -Dfile.encoding=utf-8 -jar jeecg-boot-module-system-2.1.1.jar
66. online功能测试增加数据,第二次增加失败报错
ant-design-vue 降级版本问题
https://gitee.com/jeecg/jeecg-boot/issues/I1G9Z8
67.jeecg和jeecg-boot 有什么区别?
http://www.jeecg.com/vip
68.外网或者内网IP拜访登录页面,验证码不出的问题
https://github.com/zhangdaiscott/jeecg-boot/issues/1228