摘要: 当需要扫描一个包下的所有注解时,可以在XML文件中进行配置: <!--包扫描,只要标注了@Controller、@Service、@Reposotory、@Component就可以被加载到spring bean容器--> <context:component-scan base-package="s 阅读全文
posted @ 2020-06-09 20:28 Qmillet 阅读(159) 评论(0) 推荐(0) 编辑
摘要: 实体类: 1 package spring_annotation.com.anno.bean; 2 3 /** 4 * @author Millet 5 * @date 2020/6/8 20:12 6 */ 7 public class Person { 8 private String name 阅读全文
posted @ 2020-06-09 17:40 Qmillet 阅读(169) 评论(0) 推荐(0) 编辑