![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
springboot
zhaoyan00123
这个作者很懒,什么都没留下…
展开
-
java.lang.StackOverflowError: null at com.fasterxml.jackson.databind.type.TypeFactory._fromAny(Type
遇到一个错误,找了好久 10:04:12.716 [http-nio-8080-exec-10] ERROR o.s.boot.web.support.ErrorPageFilter - Cannot forward to error page for request [/urc/addFunc] as the response has already been committed. As a result, the response may have the wrong status code. If原创 2020-05-12 10:07:17 · 965 阅读 · 0 评论 -
在Eclipse中部署Maven多模块项目
首先我们要做一些准备工作,确保系统中安装了tomcat与Maven并且在Eclipse中安装SVN和Maven插件,tomcat与Maven需要在系统环境变量中配置出Java环境变量,SVN与Maven的安装过程不再赘述,介绍一下Maven插件与tomcat在Eclipse的配置。 SVN下载项目,选择父级目录,点击‘NEXT’按钮,作为新项目检出,点击Finish按钮,检出项目。 检出后删除...原创 2020-05-06 15:54:55 · 344 阅读 · 0 评论 -
springboot多数据源启动循环依赖The dependencies of some of the beans in the application context form a cycle
使用druid多数据源时,项目启动出现数据源循环依赖, sprintboot 低版本可以使用 spring.datasource.initialize=false (默认为true) 来解决,升级到sprintboot2.1.2后就发现被启用了 @SpringBootApplication(exclude = DataSourceAutoConfiguration.class) 在启动类上...原创 2020-04-26 14:13:57 · 1439 阅读 · 1 评论 -
SpringBoot中Mybatis打印sql
如果使用的是application.properties文件,加入如下配置: logging.level.com.example.demo.dao=debug logging.level.com,后面的路径指的是mybatis对应的方法接口所在的包。并不是mapper.xml所在的包。 如果使用的是application.yml文件,加入如下配置: # 打印sql logging: ...原创 2020-04-08 22:00:36 · 65 阅读 · 0 评论 -
SpringBoot2 注解
RestController注解等同于Controller和ResponseBody标签结合 使用@RestController注解Controller,Controller中的方法无法返回页面,配置的视图解析器不起作用,返回的内容就是Return 里的内容 使用@Controller 分开写两个控制器 想返回字符串就用RestController,想返回页面就用Controller @Map...原创 2019-11-19 11:20:21 · 110 阅读 · 0 评论