SpringBoot整合Vue訪問index.html出現404

SpringBoot的yml(properties、yaml)文件配置了禁用資源映射 有的項目可能爲了要使用@ControllerAdvice與@ExceptionHandler來捕獲controller層的異常,可能會在配置文件中配置了以下內容,從而禁用了資源映射:html spring: mvc: throw-exception-if-no-handler-found: true
相關文章
相關標籤/搜索