摘要: 1、通过bean的id获取IOC容器中的对象 SpringDemoTest.java import com.mashibing.bean.Person;import org.springframework.context.ApplicationContext;import org.springfra 阅读全文
posted @ 2023-09-18 17:43 至尊只有一个 阅读(284) 评论(0) 推荐(0) 编辑
摘要: 01、spring IOC基本使用 (1)使用maven的方式来构建项目 定义项目的groupId、artifactId (2)添加对应的pom依赖 4.0.0 <groupId>com.mashibing</groupId> <artifactId>springHelloword23</artif 阅读全文
posted @ 2023-09-18 15:43 至尊只有一个 阅读(28) 评论(0) 推荐(0) 编辑