Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
guns-vip
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
guns-vip
Commits
a4b3a973
Commit
a4b3a973
authored
Nov 10, 2018
by
fengshuonan
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into test
parents
fec3aa0f
2fbd74af
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
9 additions
and
8 deletions
+9
-8
README.md
+3
-0
src/main/java/cn/stylefeng/guns/core/interceptor/RestApiInteceptor.java
+2
-4
src/main/java/cn/stylefeng/guns/modular/system/dao/mapping/DictMapper.xml
+2
-2
src/main/java/cn/stylefeng/guns/modular/system/dao/mapping/UserMapper.xml
+1
-1
src/test/java/cn/stylefeng/guns/system/DictTest.java
+1
-1
No files found.
README.md
View file @
a4b3a973
...
@@ -3,6 +3,9 @@
...
@@ -3,6 +3,9 @@
## 介绍
## 介绍
Guns基于SpringBoot 2,致力于做更简洁的后台管理系统,完美整合springmvc + shiro + mybatis-plus + beetl!Guns项目代码简洁,注释丰富,上手容易,同时Guns包含许多基础模块(用户管理,角色管理,部门管理,字典管理等10个模块),可以直接作为一个后台管理系统的脚手架! 2018目标
`更简洁`
,
`更规范`
!
Guns基于SpringBoot 2,致力于做更简洁的后台管理系统,完美整合springmvc + shiro + mybatis-plus + beetl!Guns项目代码简洁,注释丰富,上手容易,同时Guns包含许多基础模块(用户管理,角色管理,部门管理,字典管理等10个模块),可以直接作为一个后台管理系统的脚手架! 2018目标
`更简洁`
,
`更规范`
!
## 云服务器全网最低 Guns专属优惠
1核2G 99/年,298/3年,2核4G 500/1年,1227/3年,2核8G 5M带宽 2000/3年,仅限阿里云新用户,想买的老用户可以注册一个哦,点击链接购买
[
https://m.aliyun.com/act/team1111/#/share?params=N.lqp2rk5ITB.p4kqz45e
](
https://m.aliyun.com/act/team1111/#/share?params=N.lqp2rk5ITB.p4kqz45e
)
### Guns v5.1更新内容
### Guns v5.1更新内容
> * 框架整体的包名变为cn开头,和域名stylefeng.cn保持一致!
> * 框架整体的包名变为cn开头,和域名stylefeng.cn保持一致!
...
...
src/main/java/cn/stylefeng/guns/core/interceptor/RestApiInteceptor.java
View file @
a4b3a973
...
@@ -21,7 +21,6 @@ import cn.stylefeng.guns.core.util.JwtTokenUtil;
...
@@ -21,7 +21,6 @@ import cn.stylefeng.guns.core.util.JwtTokenUtil;
import
cn.stylefeng.roses.core.reqres.response.ErrorResponseData
;
import
cn.stylefeng.roses.core.reqres.response.ErrorResponseData
;
import
cn.stylefeng.roses.core.util.RenderUtil
;
import
cn.stylefeng.roses.core.util.RenderUtil
;
import
io.jsonwebtoken.JwtException
;
import
io.jsonwebtoken.JwtException
;
import
org.springframework.web.method.HandlerMethod
;
import
org.springframework.web.servlet.handler.HandlerInterceptorAdapter
;
import
org.springframework.web.servlet.handler.HandlerInterceptorAdapter
;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletRequest
;
...
@@ -41,11 +40,10 @@ public class RestApiInteceptor extends HandlerInterceptorAdapter {
...
@@ -41,11 +40,10 @@ public class RestApiInteceptor extends HandlerInterceptorAdapter {
if
(
handler
instanceof
org
.
springframework
.
web
.
servlet
.
resource
.
ResourceHttpRequestHandler
)
{
if
(
handler
instanceof
org
.
springframework
.
web
.
servlet
.
resource
.
ResourceHttpRequestHandler
)
{
return
true
;
return
true
;
}
}
HandlerMethod
handlerMethod
=
(
HandlerMethod
)
handler
;
return
check
(
request
,
response
);
return
check
(
request
,
response
,
handlerMethod
);
}
}
private
boolean
check
(
HttpServletRequest
request
,
HttpServletResponse
response
,
HandlerMethod
handlerMethod
)
{
private
boolean
check
(
HttpServletRequest
request
,
HttpServletResponse
response
)
{
if
(
request
.
getServletPath
().
equals
(
JwtConstants
.
AUTH_PATH
))
{
if
(
request
.
getServletPath
().
equals
(
JwtConstants
.
AUTH_PATH
))
{
return
true
;
return
true
;
}
}
...
...
src/main/java/cn/stylefeng/guns/modular/system/dao/mapping/DictMapper.xml
View file @
a4b3a973
...
@@ -16,14 +16,14 @@
...
@@ -16,14 +16,14 @@
id, num, pid, name,code,tips
id, num, pid, name,code,tips
</sql>
</sql>
<select
id=
"selectByCode"
resultType=
"
d
ict"
>
<select
id=
"selectByCode"
resultType=
"
cn.stylefeng.guns.modular.system.model.D
ict"
>
select
select
<include
refid=
"Base_Column_List"
/>
<include
refid=
"Base_Column_List"
/>
from sys_dict
from sys_dict
where code = #{code}
where code = #{code}
</select>
</select>
<select
id=
"selectByParentCode"
resultType=
"
d
ict"
>
<select
id=
"selectByParentCode"
resultType=
"
cn.stylefeng.guns.modular.system.model.D
ict"
>
select
select
<include
refid=
"Base_Column_List"
/>
<include
refid=
"Base_Column_List"
/>
from sys_dict
from sys_dict
...
...
src/main/java/cn/stylefeng/guns/modular/system/dao/mapping/UserMapper.xml
View file @
a4b3a973
...
@@ -68,7 +68,7 @@
...
@@ -68,7 +68,7 @@
#{userId}
#{userId}
</update>
</update>
<select
id=
"getByAccount"
resultType=
"
u
ser"
>
<select
id=
"getByAccount"
resultType=
"
cn.stylefeng.guns.modular.system.model.U
ser"
>
select
select
<include
refid=
"Base_Column_List_With_Pwd"
/>
<include
refid=
"Base_Column_List_With_Pwd"
/>
from sys_user where account = #{account} and status != 3
from sys_user where account = #{account} and status != 3
...
...
src/test/java/cn/stylefeng/guns/system/DictTest.java
View file @
a4b3a973
...
@@ -35,7 +35,7 @@ public class DictTest extends BaseJunit {
...
@@ -35,7 +35,7 @@ public class DictTest extends BaseJunit {
@Test
@Test
public
void
editTest
()
{
public
void
editTest
()
{
dictService
.
editDict
(
16
,
"tes"
,
"测试"
,
"备注"
,
"1:测试1
;2:测试
2"
);
dictService
.
editDict
(
16
,
"tes"
,
"测试"
,
"备注"
,
"1:测试1
:1;2:测试2:
2"
);
}
}
@Test
@Test
...
...
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