When configuring spring MVC, the following error was reported
Warning: No mapping found for HTTP request with URI [/world/kaptcha.do] in DispatcherServlet with name 'world'
The directory structure is as follows:
After checking for a long time, it was found that the matching part of the package scanner in the spring configuration file was wrongly written
The following is the error section. Base package is written as world; The correct way to write it should be base package = “world”, which means all the files under the world package, not all the sub packages under the world
Similar Posts:
- JAVA: scanner Read File encoding Error noSuchElementException
- Tomcat10 Error: java.lang.NoClassDefFoundError: javax/servlet/ServletContextListener
- [Solved] Startup Error: Failed to start bean ‘documentationPluginsBootstrapper’
- VSCode Use Code Runner plugin can not compile and run the file filename with spaces [How to Solve]
- Error log: resource leak: ‘xxx’ is never closed (precautions for scanner class)
- :make: *** No rule to make target `install’
- [Solved] org.springframework.web.servlet.PageNotFound noHandlerFound Warning: No mapping found for HTTP request w
- How to Solve Error: Scanner class java. Util. NoSuchElementException exception
- Spring Custome schema Loading Error: White spaces are required between publicId and systemId.
- [Solved] org.yaml.snakeyaml.scanner.ScannerException: while scanning a simple key