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
- Error reported in Python: syntax error: invalid character in identifier
- C language error: stray ‘\ 240’ in program|
- The use of Chinese characters in Qt and the solution to the “error C2001: newline in constant” problem
- Solve the oserror: [errno 22] invalid argument: ‘u202ad’ in Python
- Using global timing task cronutil in hutool tool class
- How to solve MySQL error 1049 (42000): unknown database ‘database’
- Python oserror: [errno 22] invalid argument: solution
- Python string prefix
- shiro Error org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type
- Windows encountered 1152 when installing software: error extracting files to the temporary location
- Error reported in Python reading file oserror: [errno 22] invalid argument: ‘u202ac: \ \ users \ \ yyqhk \ \ desktop \ \ 1. CSV’
- Solve the problem of VC 6.0 fatal error C1033: cannot open program database’.\debug\vc60.pdb’
- Uncaught domexception: failed to read the ‘contentdocument’ property from ‘htmliframeelement’
- Modify the custom keyboard shortcut of visual studio code
- Spring integrates JUnit configuration
- Syntax error, insert “;” to complete Statement, insert “}” to complete Block
- Springboot error: property ‘sqlsessionfactory’ or ‘sqlsessiontemplate’ are required error details
- Solution to the error of @ resource annotation in eclipse spring
- How to convert audio to subtitle (text) with Python?