When writing Spring’s ApplicationContext.xml file, out of nowhere:
CVC-Complex Type.2.3: Element ‘beans’ cannot have character [children], because the type’s content type is element-only. Error.
Error: Spring does not recognize the elements in ApplicationContext.xml when initialized.
Possible reasons for this error: The code copied online is pasted directly into an XML file, and the code on the Web may not conform to the XML specification
Remove the Chinese annotations from the XML file, because some of the annotations copied are not recognized by Spring.
2. If there is still an error, try to modify the extra space, because Chinese space Spring may recognize the error.
3. Last resort: Copy the file again manually and save it.
CVC-Complex Type.2.3: Element ‘beans’ cannot have character [children], because the type’s content type is element-only. Error.
Error: Spring does not recognize the elements in ApplicationContext.xml when initialized.
Possible reasons for this error: The code copied online is pasted directly into an XML file, and the code on the Web may not conform to the XML specification
Remove the Chinese annotations from the XML file, because some of the annotations copied are not recognized by Spring.
2. If there is still an error, try to modify the extra space, because Chinese space Spring may recognize the error.
3. Last resort: Copy the file again manually and save it.
Read More:
- Element ‘dependency‘ cannot have character [children], because the type‘s content type is element-on
- Complex warning: casting complex values to real discards the imaginary part
- Error tips:array type has incomplete element type
- array type has an incomplete element type
- shiro Error org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type
- Org.springframework.beans.factory.xml.xmlbeandefinitionstoreexception: the wildcard matching is comprehensive, but the declaration of element XX: XX XX cannot be found
- Unable to read Scheme Document ‘ http://www.springframework.org/schema/beans/spring-beans-4.1.xsd ‘ [How to Fix]
- Property ‘style’ does not exist on type ‘element‘
- Failed to execute ‘getComputedStyle’ on ‘Window’: parameter 1 is not of type ‘Element’.
- Syntax error: unexpected character after line continuation character
- Solving syntax error: unexpected character after line continuation character
- Python error TypeError:can ‘t convert complex to float
- Selenium reports an error and solves the problem of element not interactive exception, element not interactive
- C ා use math.net Read. Mat file, file content is complex
- spring boot-beans in application context form a cycle
- Syntax error: invalid character in identifier
- appear org.springframework.beans . factory.BeanCreationException Causes and solutions of abnormal
- Es error mapper of different type, current_ Type “text” solution
- org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name
- On the usage of ‘ref.stor.type search’ field in SAP WM movement type