摘要: REST API测试常用工具 postman客户端,google插件(rest console和postman)等 IDEA中集成 的REST Client,简单的UI方式 测试工具,易操作。 例外一种测试方法:Editor REST Client(基于编辑器的REST Client)区别传统的UI 阅读全文
posted @ 2019-08-03 16:44 scmath 阅读(392) 评论(0) 推荐(0) 编辑
摘要: 1. SpringBoot 默认日志 spring-boot-starter,包含依赖 spring-boot-starter-logging,该依赖就是默认的日志框架LogBack。 引入其他日志框架时,先exclusion。再添加第三方日志框架的dependency。 待测试??引入log4j 阅读全文
posted @ 2019-08-03 16:01 scmath 阅读(336) 评论(0) 推荐(0) 编辑
摘要: 加载配置信息 使用 spring默认使用yml中的配置,但有时候要用传统的xml或properties配置,就需要使用spring-boot-configuration-processor了。 value:加载配置文件的路径。 ignorResourceNotFound: 指定是否忽略 配置文件不存 阅读全文
posted @ 2019-08-03 15:49 scmath 阅读(1433) 评论(0) 推荐(0) 编辑
摘要: 请求方式: 请求体的内容类型(Content-Type:application/json): application/x-www-form-urlencoded multipart/form-data application/xml application/json application/x-ww 阅读全文
posted @ 2019-08-03 15:28 scmath 阅读(264) 评论(0) 推荐(0) 编辑
摘要: 问题一:一直提示连接池创建异常, HikariCP 经过这个问题:IDEA工具还是强大,解决问题:先看日志,多操作。 眼看+脑想(有时并不行,效率低) spring boot的强大之处: 1. 引入包,sping-boot-starter-jdbc + mysql-connector-java。 2 阅读全文
posted @ 2019-08-03 02:58 scmath 阅读(148) 评论(0) 推荐(0) 编辑