spring MVC注解配置

基于注解的spring 非常整洁

1.导入注解包后,在spring的配置文件的。加入以下配置

2.控制类

原文地址:https://www.cnblogs.com/linhongwenBlog/p/8697717.html