2011-06-02 12 views
8

मैं अपने स्टैंड-अलोन जावा एप्लिकेशन में स्प्रिंग आईओसी का उपयोग करता हूं। जब एप्लिकेशन शुरू होता है तो यह स्टार्ट-अप जानकारी के साथ एक लॉग बनाता है। कुछ संदेश जिन्हें मैं समझ नहीं पा रहा हूं, कृपया उन्हें समझने में मेरी सहायता करें और उन्हें ठीक करने के तरीके को समझने के लिए बताएं? इसके अलावा मैं उत्सुक हूं: क्या इन संदेशों की वजह से मेरे आवेदन स्थिरता के लिए कोई खतरा है?इन स्प्रिंग डीबग संदेशों का क्या अर्थ है?

जो संदेश मुझे डराते हैं वे शब्द "असमर्थ" से शुरू होते हैं। फिलहाल एप्लिकेशन बहुत अच्छी तरह से काम करता है।

INFO - Refreshing org[email protected]52cc95d: startup date  [Thu Jun 02 16:02:12 MSD 2011]; root of context hierarchy 
INFO - Loading XML bean definitions from class path resource [application-config.xml] 
DEBUG - Using JAXP provider [com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl] 
DEBUG - Loading schema mappings from [META-INF/spring.schemas] 
DEBUG - Loaded schema mappings: {http://www.springframework.org/schema/tx/spring-tx-2.5.xsd=org/springframework/transaction/config/spring-tx-2.5.xsd, http://www.springframework.org/schema/tx/spring-tx-2.0.xsd=org/springframework/transaction/config/spring-tx-2.0.xsd, http://www.springframework.org/schema/tx/spring-tx.xsd=org/springframework/transaction/config/spring-tx-3.0.xsd, http://www.springframework.org/schema/tx/spring-tx-3.0.xsd=org/springframework/transaction/config/spring-tx-3.0.xsd} 
DEBUG - Loading bean definitions 
DEBUG - Loaded 3 bean definitions from location pattern [application-config.xml] 
DEBUG - Bean factory for org[email protected]52cc95d: org.s[email protected]33aae94f: defining beans [propertyPlaceholderConfigurer,dbWorker,connectionPool]; root of factory hierarchy 
DEBUG - Creating shared instance of singleton bean 'propertyPlaceholderConfigurer' 
DEBUG - Creating instance of bean 'propertyPlaceholderConfigurer' 
DEBUG - Eagerly caching bean 'propertyPlaceholderConfigurer' to allow for resolving potential circular references 
DEBUG - Finished creating instance of bean 'propertyPlaceholderConfigurer' 
INFO - Loading properties file from class path resource [config.properties] 
DEBUG - Unable to locate MessageSource with name 'messageSource': using default [[email protected]c9d8] 
DEBUG - Unable to locate ApplicationEventMulticaster with name 'applicationEventMulticaster': using default [org.[email protected]255d17d7] 
INFO - Pre-instantiating singletons in org.s[email protected]33aae94f: defining beans [propertyPlaceholderConfigurer,dbWorker,connectionPool]; root of factory hierarchy 
DEBUG - Returning cached instance of singleton bean 'propertyPlaceholderConfigurer' 
DEBUG - Creating shared instance of singleton bean 'dbWorker' 
DEBUG - Creating instance of bean 'dbWorker' 
DEBUG - Eagerly caching bean 'dbWorker' to allow for resolving potential circular references 
DEBUG - Creating shared instance of singleton bean 'connectionPool' 
DEBUG - Creating instance of bean 'connectionPool' 
DEBUG - Eagerly caching bean 'connectionPool' to allow for resolving potential circular references 
DEBUG - Finished creating instance of bean 'connectionPool' 
DEBUG - Finished creating instance of bean 'dbWorker' 
DEBUG - Returning cached instance of singleton bean 'connectionPool' 
DEBUG - Unable to locate LifecycleProcessor with name 'lifecycleProcessor': using default [[email protected]1c2b67] 
DEBUG - Returning cached instance of singleton bean 'lifecycleProcessor' 

उत्तर

13

यह केवल डीबग स्तर आउटपुट है जिसे आपको शायद आवश्यकता नहीं है। अनिवार्य रूप से यह आपको बता रहा है कि आपने किसी विशेष वर्ग को परिभाषित नहीं किया है जो इसकी डिफ़ॉल्ट कार्यक्षमता को ओवरराइड करता है, इसलिए यह डिफ़ॉल्ट कार्यक्षमता का उपयोग करने जा रहा है। यहां चिंता करने की कोई बात नहीं है।

+0

हाय फिल, आपके उत्तर के लिए धन्यवाद। असल में मैं इसे स्वयं समझता हूं (अगर मैं ऐप लिखने में कामयाब रहा :-)। मुझे और जानकारी चाहिए। वास्तव में उन असमर्थ चीजों का क्या अर्थ है। असमर्थ - ऐप के लिए एक बुरा शब्द है जो पैसे की गणना करता है ... मुझे लगता है। लेकिन आपने मुझे थोड़ा आराम दिया है ... – Worker

+0

@MinimeDJ उस मामले में मेरा सुझाव है कि आप संदेश स्रोत, एप्लिकेशनइवेंट मल्टीकास्टर और लाइफसाइक्ल प्रोसेसर के लिए जावाडॉक्स पढ़ लें। वसंत का पूरा बिंदु यह है कि आप इसके बिट्स को कस्टमाइज़ कर सकते हैं। वह लॉग आउटपुट आपको बता रहा है कि यह डिफ़ॉल्ट कार्यक्षमता का उपयोग कर रहा है और कस्टम कार्यक्षमता नहीं है। –

+1

@MinimeDJ: डीबग-स्तरीय लॉग संदेश वे चीजें हैं जिनके बारे में आपको चिंता करने की आवश्यकता नहीं है। अपने रूट लॉगिंग स्तर को चेतावनी देने के लिए सेट करें, फिर अपने पैकेज कोड जैसे विशिष्ट पैकेज के लिए कम लॉगिंग स्तर जोड़ें। –

2

यदि आपने स्पष्ट रूप से उन बीन्स में से किसी एक को परिभाषित किया है तो आपको समस्या हो सकती है क्योंकि वसंत गलत प्रकार इंजेक्शन दे रहा है, क्योंकि यह आपकी कस्टम बीन नहीं ढूंढ रहा है। हालांकि, अगर आपने इन बीन्स को परिभाषित नहीं किया है, तो ये संदेश सौम्य हैं। वसंत सिर्फ आपको यह बताना है कि डिफ़ॉल्ट बीन का उपयोग किया जा रहा है - जैसा कि @ फिल ने पहले से ही उत्तर दिया है।

+0

ठीक है, तो मैं फिल जवाब स्वीकार करता हूं। आपकी प्रतिक्रिया के लिए आपका धन्यवाद! – Worker

संबंधित मुद्दे