第五講:5.2 Spring方法注入
阿新 • • 發佈:2018-12-19
一,spring預設是單例模式 1,spring 預設管理的bean是單例,修改beans.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 http://www.springframework.org/schema/beans/spring-beans.xsd"