1.å¦ä½è·åä¸åçUDID
å¦ä½è·åä¸åçUDID
1.BeanFactoryæåºç¡ææ ¸å¿çæ¥å£
éè¦çå®ç°ç±»æï¼
XmlBeanFactory,代理定制H5微信棋牌室源码以åApplicationContextæ¥å£ä¸çç±»
2.Resourceæ¥å£,å¯ä»¥éç¨å°è®¿é®æ件èµæº
1)ClassPathResource:读åå¾å½¢å¼ä¸º"classpath:ApplicationContext.xml"
2)FileStstemResource:读åå¾å½¢å¼ä¸º"file:c:\spring\src\ApplicationContext.xml"
3)ServletContextResource:读åå¾å½¢å¼ä¸º"WEB-INF\ApplicationContext.xml"
//ResourceLoaderç±»ç¨äºè½½å ¥Resource
3.FactoryBeanå·¥åbean
å®æ¬èº«å¨bean factoryä¸å®ä¹ï¼åæ¶åæ¯ç¨äºå建ç®æ beançå·¥å
springæ以ä¸å®ç°:
1)JndiObjectFactoryBean:éè¿JNDIæ¥æ¾è·å对象
2)LocalSessionFactoryBean:ç¨äºå¨æ¬å°è£ é Hibernate SessionFactory
3)LocalSessionFactoryBean:ç¨äºå¨æ¬å°è£ é JDO PersistenceManagerFactory
4)ProxyFactoryBean:ç¨äºè·åAOPç代ç
5)TransactionProxyFactoryBean:ç¨äºä¸ºå¯¹è±¡å建äºå¡ä»£çï¼ç¨äºå®ç°ç®æ·æç¨ç声ææ§äºå¡ä»£ç
6)RmiProxyFactoryBean:为éè¿RMI访é®çè¿ç¨å¯¹è±¡å建ä¸ä¸ªä»£ç
4.ApplicationContextå 强äºBeanFactoryçåè½ï¼æ¯æ以ä¸åè½
1)å½é åæ¯æ
2)èµæºè®¿é®
3)äºä»¶çå¬æºå¶
å®çéè¦çå®ç°ç±»æï¼
FileSystemXmlApplicationContext,ClassPathXmlApplication,XmlWebApplicationContext
5.Beançå½å¨æçåè°æ¥å£
BeanFactoryPostProcessor,InitializingBean,DisposableBean,BeanFactoryAware,ApplicationContextAware,ResourceLoader,BeanPostProcessor
6.MessageSourceæ¥å£
å®çå®ç°ç±»æResourceBundleMessageSource,ReloadableResourceBundleMessageSource.åè å¨å±æ§æ件修æ¹åä¼éæ°è½½å ¥
2024-12-26 01:21
2024-12-26 01:10
2024-12-26 01:06
2024-12-26 00:45
2024-12-26 00:31
2024-12-25 23:19
2024-12-25 23:03
2024-12-25 22:56