记得上下班打卡 | git大法好,push需谨慎

Commit a24281ad authored by wangyifan's avatar wangyifan

admin健康检查接口

parent 8052a2f0
...@@ -274,6 +274,7 @@ public class ShiroConfig ...@@ -274,6 +274,7 @@ public class ShiroConfig
filterChainDefinitionMap.put("/js/**", "anon"); filterChainDefinitionMap.put("/js/**", "anon");
filterChainDefinitionMap.put("/ruoyi/**", "anon"); filterChainDefinitionMap.put("/ruoyi/**", "anon");
filterChainDefinitionMap.put("/captcha/captchaImage**", "anon"); filterChainDefinitionMap.put("/captcha/captchaImage**", "anon");
filterChainDefinitionMap.put("/health", "anon");
// 退出 logout地址,shiro去清除session // 退出 logout地址,shiro去清除session
filterChainDefinitionMap.put("/logout", "logout"); filterChainDefinitionMap.put("/logout", "logout");
// 不需要拦截的访问 // 不需要拦截的访问
......
package com.liquidnet.client.admin.web.controller.zhengzai.health;
import com.liquidnet.client.admin.common.core.domain.AjaxResult;
import io.swagger.annotations.Api;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
@Api(tags = "健康检查")
@Controller
@RequestMapping("/health")
public class HealthController {
@GetMapping("")
@ResponseBody
public AjaxResult health() {
return AjaxResult.success("success");
}
}
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 to comment