@PostMapping("/server/leave")
    @Secured(resource = Commons.NACOS_CORE_CONTEXT + "/cluster", action = ActionTypes.WRITE, signType = SignType.CONSOLE)
    public RestResult<String> leave(@RequestBody Collection<String> params,
            @RequestParam(defaultValue = "true") Boolean notifyOtherMembers) throws Exception {
        return RestResultUtils.failed(405, null, "/v1/core/cluster/server/leave API not allow to use temporarily.");
    }
@Test
    void testLeave() throws Exception {
        RestResult<String> result = nacosClusterController.leave(Collections.singletonList("1.1.1.1"), true);
        assertFalse(result.ok());
        assertEquals(405, result.getCode());
    }