Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
xiaolang
/
expert
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
d8384f37
authored
Jun 09, 2020
by
xiaolang850403
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
日常提交
parent
44e3a8d0
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
13 additions
and
5 deletions
+13
-5
pom.xml
+0
-1
src/main/java/com/asset/controller/LoginController.java
+2
-1
src/main/java/com/asset/controller/UserController.java
+5
-0
src/main/java/com/asset/core/filter/TokenInterceptor.java
+2
-1
src/main/java/com/asset/core/jwt/JWTConfiguration.java
+2
-1
src/main/java/com/asset/core/jwt/TokenUtil.java
+2
-1
No files found.
pom.xml
View file @
d8384f37
...
@@ -132,7 +132,6 @@
...
@@ -132,7 +132,6 @@
<artifactId>
java-jwt
</artifactId>
<artifactId>
java-jwt
</artifactId>
<version>
3.8.3
</version>
<version>
3.8.3
</version>
</dependency>
</dependency>
</dependencies>
</dependencies>
<build>
<build>
...
...
src/main/java/com/asset/controller/LoginController.java
View file @
d8384f37
...
@@ -116,4 +116,4 @@ public class LoginController {
...
@@ -116,4 +116,4 @@ public class LoginController {
return
ResultUtil
.
error
(
CodeEnum
.
ERROR
);
return
ResultUtil
.
error
(
CodeEnum
.
ERROR
);
}
}
}
}
\ No newline at end of file
src/main/java/com/asset/controller/UserController.java
View file @
d8384f37
...
@@ -51,6 +51,11 @@ public class UserController {
...
@@ -51,6 +51,11 @@ public class UserController {
@Value
(
"${refexpire}"
)
@Value
(
"${refexpire}"
)
private
String
refexpire
;
private
String
refexpire
;
@GetMapping
(
"/hello"
)
public
String
hello
()
{
return
"login"
;
}
@RequestMapping
(
"/register"
)
@RequestMapping
(
"/register"
)
public
Result
register
(
@Validated
(
value
={
Insert
.
class
})
@RequestBody
User
user
,
BindingResult
result
)
throws
UnsupportedEncodingException
{
public
Result
register
(
@Validated
(
value
={
Insert
.
class
})
@RequestBody
User
user
,
BindingResult
result
)
throws
UnsupportedEncodingException
{
if
(
result
.
hasErrors
())
{
if
(
result
.
hasErrors
())
{
...
...
src/main/java/com/asset/core/filter/TokenInterceptor.java
View file @
d8384f37
...
@@ -88,4 +88,4 @@ public class TokenInterceptor implements HandlerInterceptor {
...
@@ -88,4 +88,4 @@ public class TokenInterceptor implements HandlerInterceptor {
Object
object
,
ModelAndView
mv
)
throws
Exception
{
Object
object
,
ModelAndView
mv
)
throws
Exception
{
}
}
}
}
\ No newline at end of file
src/main/java/com/asset/core/jwt/JWTConfiguration.java
View file @
d8384f37
...
@@ -35,4 +35,4 @@ public class JWTConfiguration implements WebMvcConfigurer {
...
@@ -35,4 +35,4 @@ public class JWTConfiguration implements WebMvcConfigurer {
.
excludePathPatterns
(
excludePath
);
.
excludePathPatterns
(
excludePath
);
WebMvcConfigurer
.
super
.
addInterceptors
(
registry
);
WebMvcConfigurer
.
super
.
addInterceptors
(
registry
);
}
}
}
}
\ No newline at end of file
src/main/java/com/asset/core/jwt/TokenUtil.java
View file @
d8384f37
...
@@ -53,4 +53,4 @@ public class TokenUtil {
...
@@ -53,4 +53,4 @@ public class TokenUtil {
return
false
;
return
false
;
}
}
}
}
}
}
\ No newline at end of file
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