如果不加@Controller注解,浏览器它是无法访问到的。@RequestMapping通过某个URL访问到我们写的方法 转载于:https://www.cnblogs.com/ZHONGZHENHUA/p/9070245.html