摘要:
如果 <bean id="student" class="com.demo.domain.Student"/>没有添加scope属性就默认是singleton 阅读全文
posted @ 2019-11-28 01:10
RGGL
阅读(222)
评论(0)
推荐(0)
摘要:
Spring: 配置文件没有提示:https://blog.csdn.net/u011479200/article/details/77955176 阅读全文
posted @ 2019-11-28 00:53
RGGL
阅读(204)
评论(0)
推荐(0)
摘要:
在spring里面通过配置文件创建对象: Bean实例化的方式: 第一种:使用类的无参数构造创建(重点): 创建Student实体类public class Student { public void say() { System.out.println("I'm a Student"); } }装 阅读全文
posted @ 2019-11-28 00:52
RGGL
阅读(125)
评论(0)
推荐(0)
浙公网安备 33010602011771号