SpringMvc环境搭建好了,无法访问

来源:3-3 Controller方法参数接收请求参数

qq_慕盖茨6087126

2023-03-03 20:46:27

https://img.mukewang.com/climg/6401ebc80939494622041614.jpg

https://img.mukewang.com/climg/6401ebde09ce4a3b33901594.jpghttps://img.mukewang.com/climg/6401ebea09c028ea31381570.jpg

https://img.mukewang.com/climg/6401ec0b09b82da230421240.jpg

https://img.mukewang.com/climg/6401ec150943213910960630.jpg

写回答

1回答

好帮手慕小蓝

2023-03-04

同学你好~

1.配置文件中建议同学按照课程中的方式进行配置,不要配置Thymeleaf的解析器。

2.Controller中返回的是“index”,所以对应的html应当放置在webapp根目录下,而不是在WEB-INF的子目录下。

同学先将上述两点更改之后,再尝试一下。

祝学习愉快~

0

0 学习 · 9886 问题

查看课程