SpringMVC 3.0 经常使用注解简介

1.    注册注解处理器   命名空间<context:component-scan/>        首先,若是要使注解工做,则必须配置component-scan 。该配置的功能为:启动包扫描功能,以便注册带有@Controller、@Service、@repository、@Component等注解的类成为spring的bean。例:<context:component-scanbase-
相关文章
相关标签/搜索