?? 博客主页:准Java全栈开发工程师
?? 00年出生,即将进入职场闯荡,目标赚钱,可能会有人觉得我格局小、觉得俗,但不得不承认这个世界已经不再是以一条线来分割的平面,而是围绕财富旋转的球面,成为有钱人不是为了去掌控球体的转向,而是当有人恶意掌控时,努力保护好家人和自己。






@RestController@RequestMapping("users")public class UserController { @GetMapping("/{id}") public String getById(@PathVariable Integer id){ System.out.println("id ==> " + id); return "{'msg':'qdxorigin'}"; }}

















@SpringBootApplicationpublic class DemoApplication { public static void main(String[] args) { SpringApplication.run(DemoApplication.class, args); }} <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> <exclusions> <exclusion> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-tomcat</artifactId> </exclusion> </exclusions> </dependency>
<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-jetty</artifactId> </dependency>
?? 以上就是文章的全部内容啦,诸佬如果有任何建议都可以提哦。
?? 创作不易,如果觉得对您有帮助的话,欢迎关注?点赞??收藏??哦。