Wednesday, May 6, 2015

Spring related questions

Spring related questions
1. what is ioc ? its type ? need of ioc ?
2.bean  autowire types
           -no , byName ,byType , constructor , autodetect
3.bean abstract=true
4. bean id ? mutliple Ids , names
5. scopes of beans - session , requet , global.session , prototype , singleton
6.singleton with multiple proptotype refrences
7.singleton beans are thread safe
8. prototype with mutliple sington instance
9. bean life cycle ? overrding setup and teardown
10.init and destroy methods
11 .what is lazy init
12. innerbean and calling inner bean from outside
13.loading propertiesfile
14.message resource
15.referring Collections in beans
16. spring qualifier
17.  @Autowired @Resource @PostConstruct @PreDestroy @Qualifier @Required @Bean @Component @Service @Repository   @Configuration   @DependsOn   @Primary  @Lazy  @Import  @ImportResource   @Value

18. : Tells Spring framework to read @Transactional annotation\
19/ : Automatically adds transaction support which eventually wraps your code in transaction scope
20. uploading file in spring - multipatresolver





No comments:

Post a Comment