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
3d5d3f7c
Commit
3d5d3f7c
authored
Jul 20, 2018
by
stylefeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
测试鉴权接口
parent
3a63dce2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
0 deletions
+34
-0
guns-admin/src/main/java/com/stylefeng/guns/modular/api/ApiController.java
+34
-0
No files found.
guns-admin/src/main/java/com/stylefeng/guns/modular/api/ApiController.java
0 → 100644
View file @
3d5d3f7c
package
com
.
stylefeng
.
guns
.
modular
.
api
;
import
com.stylefeng.guns.core.base.controller.BaseController
;
import
com.stylefeng.guns.core.util.JwtTokenUtil
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMethod
;
import
org.springframework.web.bind.annotation.RestController
;
/**
* 接口控制器提供
*
* @author stylefeng
* @Date 2018/7/20 23:39
*/
@RestController
@RequestMapping
(
"/gunsapi"
)
public
class
ApiController
extends
BaseController
{
/**
* 测试接口是否走鉴权
*/
@RequestMapping
(
value
=
"/test"
,
method
=
RequestMethod
.
POST
)
public
Object
test
()
{
return
SUCCESS_TIP
;
}
/**
* 模拟生成一个token
*/
public
static
void
main
(
String
[]
args
)
{
System
.
out
.
println
(
JwtTokenUtil
.
generateToken
(
"aaa"
,
null
));
}
}
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