spring 3.0 mvc 基于注解 笔记2 spring3 的基于注释的mvc可以简化我们的xml配置1.配置web.xml
2.编写Spring配置文件config.xml配置定义文件和之前略有不同<context:component-scan base-package="mvc"></context:component-scan> 定义了启动时需要检查的注释信息的包路径3.包含注释的Controller类现在我们就可以访问以下hello.do
配置定义文件和之前略有不同<context:component-scan base-package="mvc"></context:component-scan> 定义了启动时需要检查的注释信息的包路径3.包含注释的Controller类现在我们就可以访问以下hello.do
现在我们就可以访问以下hello.do