SpringBoot整合Vue访问index.html出现404

SpringBoot的yml(properties、yaml)文件配置了禁用资源映射 有的项目可能为了要使用@ControllerAdvice与@ExceptionHandler来捕获controller层的异常,可能会在配置文件中配置了以下内容,从而禁用了资源映射:html spring: mvc: throw-exception-if-no-handler-found: true
相关文章
相关标签/搜索