初学Spring Boot遇到Whitelabel Error Page的解决办法
来源:互联网 发布:linux虚拟机kvm怎么用 编辑:程序博客网 时间:2024/05/22 16:06
import org.springframework.stereotype.Controller;import org.springframework.web.bind.annotation.RequestMapping;import org.springframework.web.bind.annotation.RestController;/** * @author 杨靖罡 * @date 2017年11月16日 * @purpose */@Controllerpublic class HelloSpringBootController {@RequestMapping("/hello")public String hello(){ return "Hello, SpringBoot!"; }}
W
@Controller注解的问题
这种情况下不适合使用controller注解,应该将@Controller换成@RestController 此时就可以正常在页面打印出Hello,SpringBoot!
这里的情况是在没有页面的情况下遇到的问题,若有html/jsp时遇到Whitelable Error Page 则是模块的问题,去点击寻找答案。
阅读全文
1 0
- 初学Spring Boot遇到Whitelabel Error Page的解决办法
- spring boot: Whitelabel Error Page的解决方案
- spring boot: Whitelabel Error Page的解决方案
- spring boot: Whitelabel Error Page的解决方案
- Spring-Boot "Whitelabel Error Page" 解决方法总结
- Spring Boot报错Whitelabel Error Page
- Spring Boot报错Whitelabel Error Page
- spring-boot jsp whitelabel error page问题解决
- spring boot初学hello world访问templates报Whitelabel Error Page 404
- Spring Boot自定义错误页面,Whitelabel Error Page处理方式
- Spring Boot框架Whitelabel Error Page SpEL注入漏洞分析
- Spring Boot自定义错误页面,Whitelabel Error Page处理方式
- Spring Boot 第一个HelloWorld程序 whitelabel Error Page
- 13.2 Spring Boot启动报错:Whitelabel Error Page
- 13.2 Spring Boot启动报错:Whitelabel Error Page
- Spring boot JSP访问页面显示Whitelabel Error Page
- spring boot整合freemarker出现Whitelabel Error Page问题
- Spring Boot自定义错误页面,Whitelabel Error Page处理方式
- 算法基础-线性代数-行列式
- uva 670 The dog task
- VMware虚拟机桥接方式与真实主机共享上网
- OpenCV 2.4.9 +VS2013 开发环境配置
- 分布式集群系统下的高可用session解决方案
- 初学Spring Boot遇到Whitelabel Error Page的解决办法
- iOS-格式化金额,三位一逗号
- 关于实行和防止SSL剥离
- oracle数据库树状或者层次结果集的查询
- 关于文本分类方面的
- poj 3311 Hie with the Pie (floyd+状态压缩dp~)
- 第十一周项目一
- 第十一周项目4---利用遍历思想求解图问题(5)
- 定义一个图形类及其子类(三角形类和矩形类),分别计算其面积和周长。