摘要: 1.实例化bean的三种方式 2.初始化Ioc容器 2.1 利用构造方法参数名实例化 2.2 利用构造方法参数位置实例化 2.3 实现步骤 2.3.1 src/main/java/com/imooc/spring/ioc/entity/Apple.java package com.imooc.spr 阅读全文
posted @ 2022-11-21 23:41 李林林 阅读(27) 评论(0) 推荐(0) 编辑
摘要: 1.src/main/resources(applicationContext.xml) <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:x 阅读全文
posted @ 2022-11-21 23:20 李林林 阅读(13) 评论(0) 推荐(0) 编辑
摘要: 1.application.xml 2.Xml方式创建Ioc容器 3.Spring框架组成模块 阅读全文
posted @ 2022-11-21 23:08 李林林 阅读(11) 评论(0) 推荐(0) 编辑
摘要: 1.创建实体类 package com.imooc.entity; public class Apple { private String title; private String color; private String origin; public Apple() { } public Ap 阅读全文
posted @ 2022-11-21 02:06 李林林 阅读(17) 评论(0) 推荐(0) 编辑
摘要: 1.Ioc控制反转是一种设计理念 2.举例 3.DI依赖注入 阅读全文
posted @ 2022-11-21 00:53 李林林 阅读(12) 评论(0) 推荐(0) 编辑