fix: 删除无用nacos console 登录无用提示

Signed-off-by: lengleng <wangiegie@gmail.com>
This commit is contained in:
lengleng 2023-10-16 08:37:25 +00:00 committed by Gitee
parent 1b957e08a5
commit cc7e61f659
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -59,8 +59,7 @@ public class ServerStateController {
@SneakyThrows
@GetMapping("/announcement")
public RestResult<String> getAnnouncement() {
ClassPathResource resource = new ClassPathResource(ANNOUNCEMENT_FILE);
return RestResultUtils.success(FileUtil.readString(resource.getFile(), Charset.defaultCharset()));
return RestResultUtils.success();
}
}