摘要: 6.1、场景模拟 6.1.1、创建UserDao接口及实现类 package org.rain.spring.dao; /** * @author liaojy * @date 2023/8/5 - 11:05 */ public interface UserDao { void saveUser( 阅读全文
posted @ 2023-08-05 14:00 Javaer1995 阅读(78) 评论(0) 推荐(0)
摘要: 5.1、bean的作用域 5.1.1、单例(默认且常用) 5.1.1.1、配置bean 注意:当bean不配置scope属性时,默认是singleton(单例) <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.sprin 阅读全文
posted @ 2023-08-05 00:26 Javaer1995 阅读(92) 评论(0) 推荐(0)