Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jeecg-boot
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
chenjunxiong
jeecg-boot
Commits
68cdcf29
Commit
68cdcf29
authored
May 28, 2019
by
zhangdaihao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
解决bug; demo redis测试功能,对象未序列号
parent
a8a9df5c
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
3 deletions
+9
-3
README.md
+1
-1
jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/config/ShiroConfig.java
+2
-0
jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/test/entity/JeecgDemo.java
+4
-2
jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/service/impl/SysPermissionServiceImpl.java
+2
-0
No files found.
README.md
View file @
68cdcf29
...
@@ -125,7 +125,7 @@ Jeecg-Boot快速开发平台,可以应用在任何J2EE项目的开发中,尤
...
@@ -125,7 +125,7 @@ Jeecg-Boot快速开发平台,可以应用在任何J2EE项目的开发中,尤
-
依赖管理:Maven
-
依赖管理:Maven
-
数据库:MySQL5.0
+ & Oracle 11g & Sqlserver2008
-
数据库:MySQL5.0
& Oracle 11g & Sqlserver2005
-
缓存:Redis
-
缓存:Redis
...
...
jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/config/ShiroConfig.java
View file @
68cdcf29
...
@@ -68,6 +68,8 @@ public class ShiroConfig {
...
@@ -68,6 +68,8 @@ public class ShiroConfig {
filterChainDefinitionMap
.
put
(
"/actuator/metrics/**"
,
"anon"
);
filterChainDefinitionMap
.
put
(
"/actuator/metrics/**"
,
"anon"
);
filterChainDefinitionMap
.
put
(
"/actuator/httptrace/**"
,
"anon"
);
filterChainDefinitionMap
.
put
(
"/actuator/httptrace/**"
,
"anon"
);
filterChainDefinitionMap
.
put
(
"/actuator/redis/**"
,
"anon"
);
filterChainDefinitionMap
.
put
(
"/actuator/redis/**"
,
"anon"
);
filterChainDefinitionMap
.
put
(
"/test/jeecgDemo/demo3"
,
"anon"
);
//模板测试
filterChainDefinitionMap
.
put
(
"/test/jeecgDemo/redisDemo/**"
,
"anon"
);
//redis测试
// 添加自己的过滤器并且取名为jwt
// 添加自己的过滤器并且取名为jwt
...
...
jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/test/entity/JeecgDemo.java
View file @
68cdcf29
package
org
.
jeecg
.
modules
.
demo
.
test
.
entity
;
package
org
.
jeecg
.
modules
.
demo
.
test
.
entity
;
import
java.io.Serializable
;
import
org.jeecg.common.system.base.entity.JeecgEntity
;
import
org.jeecg.common.system.base.entity.JeecgEntity
;
import
org.jeecgframework.poi.excel.annotation.Excel
;
import
org.jeecgframework.poi.excel.annotation.Excel
;
import
org.springframework.format.annotation.DateTimeFormat
;
import
org.springframework.format.annotation.DateTimeFormat
;
...
@@ -24,8 +26,8 @@ import lombok.experimental.Accessors;
...
@@ -24,8 +26,8 @@ import lombok.experimental.Accessors;
@Accessors
(
chain
=
true
)
@Accessors
(
chain
=
true
)
@ApiModel
(
value
=
"测试DEMO对象"
,
description
=
"测试DEMO"
)
@ApiModel
(
value
=
"测试DEMO对象"
,
description
=
"测试DEMO"
)
@TableName
(
"demo"
)
@TableName
(
"demo"
)
public
class
JeecgDemo
extends
JeecgEntity
{
public
class
JeecgDemo
extends
JeecgEntity
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
/** 部门编码 */
/** 部门编码 */
@Excel
(
name
=
"部门编码"
,
width
=
25
)
@Excel
(
name
=
"部门编码"
,
width
=
25
)
@ApiModelProperty
(
value
=
"部门编码"
)
@ApiModelProperty
(
value
=
"部门编码"
)
...
...
jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/service/impl/SysPermissionServiceImpl.java
View file @
68cdcf29
...
@@ -166,8 +166,10 @@ public class SysPermissionServiceImpl extends ServiceImpl<SysPermissionMapper, S
...
@@ -166,8 +166,10 @@ public class SysPermissionServiceImpl extends ServiceImpl<SysPermissionMapper, S
//b.判断老的菜单下是否还有其他子菜单,没有的话则设置为叶子节点
//b.判断老的菜单下是否还有其他子菜单,没有的话则设置为叶子节点
int
cc
=
this
.
count
(
new
QueryWrapper
<
SysPermission
>().
lambda
().
eq
(
SysPermission:
:
getParentId
,
p
.
getParentId
()));
int
cc
=
this
.
count
(
new
QueryWrapper
<
SysPermission
>().
lambda
().
eq
(
SysPermission:
:
getParentId
,
p
.
getParentId
()));
if
(
cc
==
0
)
{
if
(
cc
==
0
)
{
if
(
oConvertUtils
.
isNotEmpty
(
p
.
getParentId
()))
{
this
.
sysPermissionMapper
.
setMenuLeaf
(
p
.
getParentId
(),
1
);
this
.
sysPermissionMapper
.
setMenuLeaf
(
p
.
getParentId
(),
1
);
}
}
}
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment