Spring reports an error: the prefix “context” of the element “context: component scan” is not bound. Solve the problem

An error is reported in the spring configuration file: the prefix "context" of the element "context: component scan" is not bound. This is what I encountered when I was working on the project. The project manager and colleagues reminded me to solve it. Here's how to solve it.

1. The spring configuration information is as follows:

2. The error message is as follows:

[problem analysis]

The context tag is used in the configuration file, but it is not declared.

[@ r_419_2422 @ case] add the statement of context in the configuration file

Thank you for reading, hope to help you, thank you for your support to this site!

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>