文件结构
application.properties
server.port=9999
DemoController.java
@RestController
public class DemoController {
@GetMapping("/hello")
public String demo(){
return "Hello World";
}
}
运行后访问localhost:9999/hello
文件结构
application.properties
server.port=9999
DemoController.java
@RestController
public class DemoController {
@GetMapping("/hello")
public String demo(){
return "Hello World";
}
}
运行后访问localhost:9999/hello