🔧Chore: 项目初始化
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
package com.wonderland.stardewvalley;
|
||||
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
|
||||
@SpringBootApplication
|
||||
public class Application {
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(Application.class, args);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
package com.wonderland.stardewvalley.controller;
|
||||
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
@RestController
|
||||
@RequestMapping("health")
|
||||
public class HealthController {
|
||||
|
||||
@GetMapping("/ping")
|
||||
public String healthTest() {
|
||||
return "Welcome to Stardew Valley!";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user