Commit d8384f37 by xiaolang850403

日常提交

parent 44e3a8d0
......@@ -132,7 +132,6 @@
<artifactId>java-jwt</artifactId>
<version>3.8.3</version>
</dependency>
</dependencies>
<build>
......
......@@ -116,4 +116,4 @@ public class LoginController {
return ResultUtil.error(CodeEnum.ERROR);
}
}
}
\ No newline at end of file
......@@ -51,6 +51,11 @@ public class UserController {
@Value("${refexpire}")
private String refexpire;
@GetMapping("/hello")
public String hello() {
return "login";
}
@RequestMapping("/register")
public Result register(@Validated(value={Insert.class}) @RequestBody User user, BindingResult result) throws UnsupportedEncodingException {
if (result.hasErrors()) {
......
......@@ -88,4 +88,4 @@ public class TokenInterceptor implements HandlerInterceptor {
Object object, ModelAndView mv) throws Exception {
}
}
}
\ No newline at end of file
......@@ -35,4 +35,4 @@ public class JWTConfiguration implements WebMvcConfigurer {
.excludePathPatterns(excludePath);
WebMvcConfigurer.super.addInterceptors(registry);
}
}
}
\ No newline at end of file
......@@ -53,4 +53,4 @@ public class TokenUtil {
return false;
}
}
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment