Element 'beans' cannot have character [children],because the type's content type is element

配置文件错误—— Element 'beans' cannot have character [children],because the type's content type is element

 

Under beans label means there is only a child element nodes, can not exist text symbols

 

When the compiler release of this error is that the configuration file error occurred. There are two cases of this error.

1. Simple Error: careful observation of the code, it may sometimes be in a text symbol

2. difficult to find the error: verify the code, there is no text symbols, there may be a coding problem, the whole copy, open with notepad ++, using ANSI encoding format, you will be able to find errors.

When I left the pit is the second, on a copy of the notepad ++, the results are shown:

the utf-8 format:

 

Under ANSI format:

 

 Use ANSI encoding, somehow this extra stuff, and can be deleted.

Guess you like

Origin www.cnblogs.com/knightlj/p/12173714.html