文件结构
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
相关推荐