JavaWeb - 默认页面
-
错误描述: 进行 JavaWeb 学习过程中, 对页面添加默认的错误页面(error-code)配置, 报错
Invalid content was found starting with element 'error-code'. No child element is expected at this point.
-
错误情形复现
- 错误信息提示
- Invalid content was found starting with element ‘error-code’. No child element is expected at this point.
- 发现以元素“错误代码”开头的无效内容。 此时不需要子元素。
- 尝试解决
- 替换
<location>
和<error-code>
的顺序即可
- 替换
- 具体原因:
- ??? 未知