![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
springboot
aasmallrookie
这个作者很懒,什么都没留下…
展开
-
Spring study 03-Spring IOC配置文件加载
1 配置文件加载 spring.xml <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.springframework.org/schema/beans https://原创 2022-01-20 20:23:35 · 68 阅读 · 0 评论 -
Spring study 02-Spring IOC Bean 对象的实例化的模拟实现
思路: 1、定义Bean工厂接口,提供获取bean方法 2、定义Bean工厂实现类,解析配置文件,实例化Bean对象 3、实现获取Bean方法 项目结构图: 1 定义Bean属性对象 /** * Bean对象 * 用来接收配置文件(spring.xml)中bean标签的id与class属性 */ public class MyBean { private String id; private String clazz; public MyBean() { }原创 2022-01-20 14:46:36 · 107 阅读 · 1 评论 -
spring study 01-Spring环境搭建
Spring study 01 今天是学习springboot第一天,久违的spring。下面记录一下spring的环境搭建。 1 新建一个maven项目 接下来一系列常规设置…… 2 修改pom.xml 为啥要修改,我现在也没懂 <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSch原创 2022-01-19 23:00:17 · 199 阅读 · 0 评论