Do not understand the background, the first time to use springmvc controller access can not ask the boss to take a look

this is the web-serlet.xml configuration

clipboard.png

congtroller :

clipboard.png

I have used springboot before. The springmvc is mainly used to send data to the front end. Html is not jsp. What"s wrong with me? take a look-sharp-sharp-sharp topic description

sources of topics and their own ideas

related codes

/ / Please paste the code text below (do not replace the code with pictures)

what result do you expect? What is the error message actually seen?

May.02,2022

add @ ResponseBody annotation or try @ RestController annotation directly

Menu