SpringBoot 是如何请求到对应Controller的@RequestMapping方法的?
现在我们的项目基本上都是采用springboot来编写的。springboot相比于传统的spring项目,引入了自动化配置,减少了繁琐的配置,大大的提高了我们的开发效率。在SpringBoot项目中,我们通常在相应的controller中定义我们的方法。@RestControllerpublic class HelloController { @GetMapping("hello") public String hello(){ return "hello";
原创
2022-04-22 18:23:33 ·
2289 阅读 ·
1 评论