Whitelabel Error Page This application has no explicit mapping for /error, so you are seeing this as a fallback. Fri Mar 23 10:34:26 CST 2018There was an unexpected error (type=Internal Server Error, status=500).Circular view path [index]: would disp…
困扰了好几天的坑 javax.servlet.ServletException: Circular view path [fileupload]: would dispatch back to the current handler URL [/web/fileupload] again. Check your ViewResolver setup! (Hint: This may be the result of an unspecified view, due to default view…
Circular view path [home]: would dispatch back to the current handler URL [/home] again. Check your ViewResolver setup! (Hint: This may be the result of an unspecified view, due to default view name generation.) 1. 问题的现象 比如在webConfig中定义了一个viewResolve…
简单创建一个springboot工程 pom.xml <?xml version="1.0" encoding="UTF-8"?><project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://mave…
2019-08-08 17:12:03.544 ERROR 13748 --- [nio-8080-exec-2] o.a.c.c.C.[.[.[/].[dispatcherServlet] : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Circular view path [index]: would dispatch back to the curren…
一:当在eclipse启动spring boot项目时出现问题: springboot错误: 找不到或无法加载主类 解决办法: 1,通过cmd命令行,进入项目目录进行,mvn clean install 进行编译 项目install后,再到eclipse 上选中项目按F5刷新项目.再运行即可问题解决. 2,在eclipse 上选中项目 点击clean 清理项目再运行 问题解决. 3,如果运行还是出现无法加载主类, (a)排查项目代码是否有问题, (b)可以进入cmd,  cd 进入项目目录 执行…
  默认效果:1).浏览器,返回一个默认的错误页面 1.1 请求头 1.2返回结果 2).如果是其他客户端,默认响应一个json数据 2.1请求头 2.2返回结果 { "timestamp": "2018-11-25T08:22:36.343+0000", ", "error": "Not Found", "message": "No message available", &…
背景 使用Spring Cloud搭建微服务,服务的注册与发现(Eureka)项目启动时报错,错误如下 *************************** APPLICATION FAILED TO START *************************** Description: Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could b…
今天终于把 boot 的异常处理完全研究透了: boot提供了很多错误的处理工作.默认情况下,我们会看到一个whiteLabel(白标)的页面. 这个可能不是我们所需.因此我们需要定制.我于是做了个深入的研究. boot 的错误,入口,显然是ErrorMvcAutoConfiguration. 它在WebMvcAutoConfiguration 配置之前完成 : @AutoConfigureBefore(WebMvcAutoConfiguration.class) 在ErrorMvcAutoCo…
在boot 中, 对404  和 异常 有了额外的处理. 当然,我们可以定制, 如何做呢? 1 写一个继承 ErrorController 的Controller 注意, 这里一定要继承 ErrorController . 否则就boot会 启动失败,因为mapping 冲突, 因为不允许两个相同的 /error 映射嘛! @Controller public class ErrContrller implements ErrorController { // @Override public…