|
@ -45,6 +45,16 @@ public class CommonEndpoint extends EnvelopRestEndpoint {
|
|
@Autowired
|
|
@Autowired
|
|
private StringRedisTemplate redisTemplate;
|
|
private StringRedisTemplate redisTemplate;
|
|
|
|
|
|
|
|
@GetMapping(value = "open/health")
|
|
|
|
@ApiOperation(value = "测试应用是否可用")
|
|
|
|
public Envelop health() {
|
|
|
|
try {
|
|
|
|
return success("查询成功");
|
|
|
|
} catch (Exception e) {
|
|
|
|
return failedException2(e);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
@GetMapping(value = "open/setRedisEnable")
|
|
@GetMapping(value = "open/setRedisEnable")
|
|
@ApiOperation(value = "设置是否开启拦截security:csrf:enable 1拦截")
|
|
@ApiOperation(value = "设置是否开启拦截security:csrf:enable 1拦截")
|
|
public Envelop setRedisEnable(String str) {
|
|
public Envelop setRedisEnable(String str) {
|