浏览器报错
依赖
application.yml
aaplication.properties
h5页面
controller
项目结构
404就是路径错误,找不到对应的URL
代码里的打印输出了没
spring.thymeleaf.prefix=classpath:/templates/
spring.thymeleaf.suffix=.html
spring.thymeleaf.mode=LEGACYHTML5
spring.thymeleaf.encoding=UTF-8
spring.thymeleaf.servlet.content-type=text/html
spring.thymeleaf.cache=false
把这个加到yml中看看,这个是配置thymeleaf下面的html的,会拼接你return的路径,找到对应的界面