首页 > 编程语言 > 详细

新建的springboot跳转页面404的问题

时间:2018-06-22 18:11:42      阅读:475      评论:0      收藏:0      [点我收藏+]

start.spring.io下载的maven项目,功能选择的web,部署到本地后controller断点能击中,但retrun后提示404,同时后台打印一条error日志

Cannot forward to error page for request [/] as the response has already been committed. As a result, the response may have the wrong status code. If your application is running on WebSphere Application Server you may be able to resolve this problem by setting com.ibm.ws.webcontainer.invokeFlushAfterService to false

解决方法

  pom.xm引入

<dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-thymeleaf</artifactId>
        </dependency>

就好了。

 

新建的springboot跳转页面404的问题

原文:https://www.cnblogs.com/s1956/p/9214742.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!