Spring Boot
Spring Boot相关问题解决方案,关注Java Web开发。
小船长的炒菜猫
不积跬步无以致千里,不积小流无以成江海
展开
-
Unable to start EmbeddedWebApplicationContext due to missing EmbeddedServletContainerFactory bean.
Spring Boot启动出现错误,错误内容大概的意思是:未能加载嵌入的供web应用加载的空间,是因为缺少EmbeddedServletContainerFactory bean,在stackflow上面看到了这个错误的解决办法,原文如下:up voteown voteacceptedThe scheduling guide isn't a we翻译 2016-09-23 11:58:55 · 32556 阅读 · 8 评论 -
Spring Boot:The field file exceeds its maximum permitted size of 1048576 bytes.
Spring Boot做文件上传时出现了The field file exceeds its maximum permitted size of 1048576 bytes.错误,显示文件的大小超出了允许的范围。查看了官方文档,原来Spring Boot工程嵌入的tomcat限制了请求的文件大小,这一点在Spring Boot的官方文档中有说明,原文如下65.5 Handling Multip...原创 2017-01-12 21:15:50 · 150092 阅读 · 31 评论 -
Spring Boot+Maven 工程配置H2内存数据库
1.新建Maven工程,引入依赖pom配置:<parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>1.3.1.RELEASE</version></parent><dependency> <g原创 2017-04-11 14:16:53 · 5869 阅读 · 0 评论 -
javax.servlet.ServletException: Circular view path......Check your ViewResolver setup!
Controller返回数据到前端的时候出现了异常,工程:Spring Boot + Mybatis,Controller代码:@Controllerpublic class UserController { @Autowired private UserMapper userService; @RequestMapping("/users")原创 2017-08-30 13:12:06 · 21703 阅读 · 4 评论 -
Spring Boot:Exception parsing document: template="index", line 7 - column 3
今天在Spring Boot工程中测试访问静态的html文件 文件目录:-src/main/resources -templates -index.html -static -js -css在写好html文件和js以及css文件以后,浏览器访问 http://localhost:5876/app/manage/index, 目的原创 2017-07-19 19:57:48 · 11019 阅读 · 0 评论