File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed
continew-admin-webapi/src/main/java/top/continew/admin Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change 36
36
import top .continew .starter .core .autoconfigure .project .ProjectProperties ;
37
37
import top .continew .starter .extension .crud .annotation .EnableCrudRestController ;
38
38
import top .continew .starter .web .annotation .EnableGlobalResponse ;
39
+ import top .continew .starter .web .model .R ;
39
40
40
41
/**
41
42
* 启动程序
@@ -60,16 +61,11 @@ public static void main(String[] args) {
60
61
SpringApplication .run (ContiNewAdminApplication .class , args );
61
62
}
62
63
63
- /**
64
- * 访问首页提示
65
- *
66
- * @return /
67
- */
68
64
@ Hidden
69
65
@ SaIgnore
70
66
@ GetMapping ("/" )
71
- public String index () {
72
- return "%s service started successfully." .formatted (projectProperties .getName ());
67
+ public R index () {
68
+ return R . ok ( "%s service started successfully." .formatted (projectProperties .getName ()), null );
73
69
}
74
70
75
71
@ Override
You can’t perform that action at this time.
0 commit comments