1, I followed the "fourth edition of Spring practice" to build an entry springmvc, book that uses Java file configuration instead of xml file, so it is difficult to find the answer
2. The problem is that opening it with tomcat can automatically jump out of the index page, but cannot access the address mapped in controller
3. Using junit and MockMvc tests can pass the test. Now I don"t know if there is something wrong with my project configuration. Or is the browser"s access address written incorrectly?
figure 1: test access to controller passes
2 controller404