異常:This application has no explicit mapping for /error, so you are seeing this as a fallback解決方法


debug可以到達 controller頁面

缺少一個jar包

pom.xml配置

<!-- SpringBoot集成thymeleaf模板 -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-thymeleaf</artifactId>
</dependency>


# Spring配置
spring:
# 模板引擎
thymeleaf:
mode: HTML
encoding: utf-8
# 禁用緩存
cache: false
# 資源信息
messages:
# 國際化資源文件路徑
basename: static/i18n/messages
jackson:
time-zone: GMT+8
date-format: yyyy-MM-dd HH:mm:ss
profiles:
active: druid
# 文件上傳
servlet:
multipart:
# 單個文件大小
max-file-size: 10MB
# 設置總上傳的文件大小
max-request-size: 20MB
# 服務模塊
devtools:
restart:
# 熱部署開關
enabled: true


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM