官方资料
官网
https://spring.io/
Spring5下载
1.进入该网站
https://repo.spring.io
2.找到Artifacts

3.点开release

2023年11月15日大约 10 分钟
https://spring.io/
1.进入该网站
https://repo.spring.io
2.找到Artifacts
3.点开release
Spring5基本介绍这一章中都是通过id来获取 bean,在此不再赘述。
<!--配置Monster,通过类型来获取-->
<bean class="com.lzw.spring.bean.Monster">
<!--
1.当我们给某个bean对象设置属性的时候
2.底层是使用对应的setter方法完成的, 比如setName()
3.如果没有这个方法,就会报错
-->
<property name="monsterID" value="100"/>
<property name="name" value="牛魔王"/>
<property name="skill" value="蛮牛冲撞"/>
</bean>
AOP 讲解:spring-framework-5.3.8/docs/reference/html/core.html#aop
AOP API:spring-framework-5.3.8/docs/javadoc-api/index.html
【初始化 IOC 容器+依赖注入+BeanPostProcessor 机制+AOP】
如果程序员就希望使用 spring 框架来做项目,spring 框架如何处理对数据库的操作呢?
方案 1:使用前面做项目开发的 JdbcUtils 类 。
方案 2:其实 spring 提供了一个操作数据库(表)功能强大的类 JdbcTemplate 。我们可以同 ioc 容器来配置一个 jdbcTemplate 对象,使用它来完成对数据库表的各种操作。
JdbcTemplate APIs : /spring-framework-5.3.8/docs/javadoc-api/index.html