spring 41 - 46

// spring bean scopes 
// singleton: create a single shared instance of the bean, default scope 
// prototype: new object created for each request , good for keeing track of stateful data  

<bean id = "myCoach"
    class = "com.luv2code.springdemo.TrackCoach"
    scope = "prototype" > 
        
        
        
https://www.udemy.com/spring-hibernate-tutorial/learn/lecture/5232904#questions        

 

posted on 2019-09-10 15:49  猪猪&#128055;  阅读(94)  评论(0)    收藏  举报

导航