SpringBoot的Controller的使用以及页面跳转
本系列是SpringBoot的项目系列的第二篇,此篇文章内容涉及SpringBoot的Controller的使用以及页面跳转
如何写一个Controller代码
https://spring.io/quickstart
可以参考上诉网址
1.新建一个controller包,再新建一个HelloController类
2.写代码,写一个hello的请求
import org.springframework.web.bind.annotation.RequestMapping;
import org