idea spring-boot jsp whitelabel error page问题解决
2019-07-02 18:13
736 查看
版权声明:本文为博主原创文章,遵循 CC 4.0 by-sa 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://blog.csdn.net/qq_44904944/article/details/94464709
网上查到添加配置类的解决方案,但因为本人用的spring-boot版本是2.0以上,有些类的名字有所改变,所以配置类书写如下
@Configuration
public class TomcatConfig {
@Bean
public TomcatServletWebServerFactory embeddedServletContainerFactory() {
ConfigurableServletWebServerFactory factory = new TomcatServletWebServerFactory();
// 请自行优化目录,可写配置参数
factory.setDocumentRoot(new File(“C:\Users\Administrator\IdeaProjects\jt_project\springboot_jsp\src\main\webapp\”));
return (TomcatServletWebServerFactory) factory;
}
}
相关文章推荐
- spring-boot jsp whitelabel error page问题解决
- spring-boot集成 jsp报whitelabel error page的问题解决
- Spring Boot Whitelabel Error Page 问题解决
- 《Springboot极简教程》问题解决:Springboot启动报错 Whitelabel Error Page: This application has no explicit mapping for
- 《Springboot极简教程》问题解决:Springboot启动报错 Whitelabel Error Page: This application has no explicit mapping for(转)
- springboot + tomcat + jsp 报Whitelabel Error Page解决方法
- Spring boot JSP访问页面显示Whitelabel Error Page
- Spring-Boot "Whitelabel Error Page" 解决方法总结
- Spring Boot 处理Whitelabel Error Page问题
- spring boot2.0 创建 及 mvc视图映射 jsp时 Whitelabel Error Page(一)
- SpringBoot中jsp页面调用iframe标签报Whitelabel Error Page 错误
- 初学Spring Boot遇到Whitelabel Error Page的解决办法
- springboot整合shiro-Whitelabel Error Page解决(三)
- Idea搭建Spring boot及Whitelabel Error Page
- Spring Boot Whitelabel Error Page解决办法
- SpringBoot接口服务处理Whitelabel Error Page
- springboot启动报错:whitelabel error page
- 初学 Spring boot 报错 Whitelabel Error Page 404
- springboot,404,Whitelabel Error Page,HTTP Status 404 – Not Found
- Spring Boot 第一个HelloWorld程序 whitelabel Error Page