Commit 8a7417c4 by xmh

<fix> 登出功能修复

1 parent dd1283e6
...@@ -32,7 +32,7 @@ public class WebConfig implements WebMvcConfigurer { ...@@ -32,7 +32,7 @@ public class WebConfig implements WebMvcConfigurer {
@Override @Override
public void addInterceptors(InterceptorRegistry registry) { public void addInterceptors(InterceptorRegistry registry) {
registry.addInterceptor(authInterceptor).addPathPatterns("/**").excludePathPatterns("/users/login", "/reid/upload","/**/websocket/**"); registry.addInterceptor(authInterceptor).addPathPatterns("/**").excludePathPatterns("/users/login", "/reid/upload", "/**/websocket/**", "/users/logout");
} }
@Bean @Bean
......
...@@ -82,6 +82,7 @@ public class UserController extends UserBaseController { ...@@ -82,6 +82,7 @@ public class UserController extends UserBaseController {
} }
@GetMapping("/logout") @GetMapping("/logout")
@ResponseBody
public Object logout() { public Object logout() {
StpUtil.logout(); StpUtil.logout();
return JsonMessageUtil.getSuccessJsonMsg(); return JsonMessageUtil.getSuccessJsonMsg();
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!