🔧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!";
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
# springdoc-openapi项目配置
|
||||
springdoc:
|
||||
swagger-ui:
|
||||
path: /swagger-ui.html
|
||||
tags-sorter: alpha
|
||||
operations-sorter: alpha
|
||||
api-docs:
|
||||
path: /v3/api-docs
|
||||
group-configs:
|
||||
- group: 'default'
|
||||
paths-to-match: '/**'
|
||||
packages-to-scan: com.wonderland.stardewvalley.controller
|
||||
# knife4j的增强配置,不需要增强可以不配
|
||||
knife4j:
|
||||
enable: true
|
||||
setting:
|
||||
language: zh_cn
|
||||
|
||||
|
||||
spring:
|
||||
mvc:
|
||||
servlet:
|
||||
path: /api
|
||||
Reference in New Issue
Block a user