1. 程式人生 > >Spring核心框架:

Spring核心框架:

repo clas const 指定 let struts init 方法 str

核心配置器的關鍵詞:

1.id、2.name、3.init-method=“init”/PostConStruts(初始化方法)、4.destroy-method=“destroy”(銷毀方法)、5.scope=singleton”(標識作用域)/scope(name="prototype")scope作用域,指定為原型(默認是單例的)

6.controller(" ") ("標識控制層")、7.Repository(" ") (標識持久層)、 8.Service(" ") (標識業務層)、 9.Component註解配置Bean,Value值標識Bean的id



@PostConstruct

Spring核心框架: