为什么http://localhost:8080/th/index可以访问而http://localhost:8080/th/index.html访问为404

来源:6-2 SpringBoot 整合thymeleaf

Kwanwooo

2018-07-28 23:13

如题,前面的正确显示,后面的显示不了

写回答 关注

3回答

  • 拼搏到无能为力
    2018-10-22 20:28:56

    一样加上html就404


  • 楠是阿岚的岚
    2018-08-23 15:43:48

    我也是这个样子, 求解

    This application has no explicit mapping for /error, so you are seeing this as a fallback.

    Thu Aug 23 15:42:24 CST 2018

    There was an unexpected error (type=Not Found, status=404).

    No message available


  • Kwanwooo
    2018-07-28 23:14:25

    Whitelabel Error Page

    This application has no explicit mapping for /error, so you are seeing this as a fallback.

    Sat Jul 28 23:13:42 CST 2018

    There was an unexpected error (type=Not Found, status=404).

    No message available

    加了html后缀之后显示的结果

SpringBoot开发常用技术整合

SpringBoot 极简开发的框架整合利器

102171 学习 · 508 问题

查看课程

相似问题