मुझे एक अजीब समस्या है जिसे मैं ट्रैक नहीं कर सकता। मेरे पास यह समस्या के बिना अन्य सर्वरों के साथ काम कर रहा है, लेकिन मुझे यह काम करने के लिए प्रतीत नहीं होता है। मेरी समस्या को देखने वाली सबसे नज़दीकी पोस्ट यह पोस्ट The prefix "context" for element "context:component-scan" is not boundस्प्रिंग फ्रेम वर्क कॉन्फ़िगरेशन समस्या "तत्व संदर्भ के लिए उपसर्ग संदर्भ: एनोटेशन-कॉन्फ़िगरेशन बाध्य नहीं है"
अन्य सभी वास्तव में इसलिए थे क्योंकि उपसर्ग xml फ़ाइल में नहीं था। मुझे उम्मीद है कि कोई मुझे सही दिशा में इंगित करने में सक्षम हो सकता है।
स्प्रिंग एक्सएमएल फ़ाइल:
<?xml version="1.0" encoding="UTF-8"?>
<beans
xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:dwr="http://www.directwebremoting.org/schema/spring-dwr"
xmlns:mongo="http://www.springframework.org/schema/data/mongo"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-3.0.xsd
http://www.springframework.org/schema/data/mongo
http://www.springframework.org/schema/data/mongo/spring-mongo-1.0.xsd
http://www.directwebremoting.org/schema/spring-dwr
http://www.directwebremoting.org/schema/spring-dwr-3.0.xsd">
<context:annotation-config/>
तो मुझे लगता है कि है, लेकिन यह त्रुटि मिलती:
org.xml.sax.SAXParseException: The prefix "context" for element "context:annotation-config" is not bound.
किसी भी मदद की सराहना। मुझे बताएं कि मैं और क्या प्रदान कर सकता हूं।
धन्यवाद
में संदर्भ बहुत अजीब ... यह निश्चित रूप से ऐसा लगता है कि इसे अभी काम करना चाहिए। क्या आपकी एक्सएमएल फाइल निश्चित रूप से यूटीएफ -8 में एन्कोड की गई है? जावा का आप किस संस्करण का उपयोग कर रहे हैं? – Muel
का उपयोग: जावा संस्करण "1.6.0_45" क्षमा करें और पोस्टिंग मारना जारी रखें। मैं टेक्स्ट फ़ाइल के लिए यूटीएफ -8 एन्कोडिंग कैसे सत्यापित कर सकता हूं। फ़ाइल का उपयोग करना सिर्फ मुझे बता रहा है कि यह एक्सएमएल है।ओपनऑफिस के साथ खोलने में इसे यूटीएफ -8 दस्तावेज़ के रूप में खोलने में कोई समस्या नहीं प्रतीत होती है। क्षमा करें मैं इसका परीक्षण करने के लिए एक और तरीका नहीं जानता। धन्यवाद – zooppoop
आप अपना स्प्रिंग ऐप कैसे लॉन्च कर रहे हैं? – Muel