This commit is contained in:
2025-08-21 11:13:33 +00:00
commit eda045e55c
11 changed files with 562 additions and 0 deletions
@@ -0,0 +1,13 @@
package com.ljc42.demo;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
@Controller
public class HelloController {
@GetMapping("/")
public String hello() {
return "hello.json";
}
}
@@ -0,0 +1,14 @@
package com.ljc42.demo;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class })
public class DemoApplication {
public static void main(String[] args) {
SpringApplication.run(DemoApplication.class, args);
}
}
@@ -0,0 +1 @@
spring.application.name=demo
+1
View File
@@ -0,0 +1 @@
{"message":"Hello"}