Spring的IOC注解开发

在Spring中,IOC能够加载本身建立的类,也能够加载jar包中的类,原理与配置方式如出一辙,通常对于本身建立的类能够用注解的方式进行代替。java 注解的开发步骤:mysql a、导入spring-aop.jar包web b、配置注解扫描器spring <context:component-scan base-package="cn.itcast"></context:component-sc
相关文章
相关标签/搜索