Skip to content

Commit

Permalink
chore: 优化健康监测接口响应信息
Browse files Browse the repository at this point in the history
  • Loading branch information
Charles7c committed Aug 28, 2024
1 parent 6c4e252 commit bb5a92e
Showing 1 changed file with 3 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
import top.continew.starter.core.autoconfigure.project.ProjectProperties;
import top.continew.starter.extension.crud.annotation.EnableCrudRestController;
import top.continew.starter.web.annotation.EnableGlobalResponse;
import top.continew.starter.web.model.R;

/**
* 启动程序
Expand All @@ -60,16 +61,11 @@ public static void main(String[] args) {
SpringApplication.run(ContiNewAdminApplication.class, args);
}

/**
* 访问首页提示
*
* @return /
*/
@Hidden
@SaIgnore
@GetMapping("/")
public String index() {
return "%s service started successfully.".formatted(projectProperties.getName());
public R index() {
return R.ok("%s service started successfully.".formatted(projectProperties.getName()), null);
}

@Override
Expand Down

0 comments on commit bb5a92e

Please sign in to comment.