测试了一下,貌似是可以的,只需要在Spring mvc的配置文件中写上:
<context:component-scan base-package="..."/>
貌似@Controller,@RequestMapping注解就可以使用了.
此外,<context:component-scan base-package=""/>是应该配置在Spring配置文件中,
还是应该配置在Spring mvc的配置文件中,或者是两个文件中都需要配置呢?
侃侃无极
慕仙森
随时随地看视频慕课网APP
相关分类