摘要: Async/await There’s a special syntax to work with promises in a more comfortable fashion, called “async/await”. It’s surprisingly easy to understand a 阅读全文
posted @ 2022-07-22 19:59 z-laoyao 阅读(32) 评论(0) 推荐(0) 编辑
摘要: ResponseEntity的使用 一、介绍 ResponseEntity继承了HttpEntity类,HttpEntity代表一个http请求或者响应实体,其内部有两个成员变量:header及body,代表http请求或响应的header及body,其中的body是泛化的。 ResponseEnt 阅读全文
posted @ 2022-07-22 18:29 z-laoyao 阅读(3989) 评论(0) 推荐(0) 编辑
摘要: 1、STDOUT_LOGGING 标准日志实现 指定 MyBatis 应该使用哪个日志记录实现。如果此设置不存在,则会自动发现日志记录实现。 <settings> <setting name="logImpl" value="STDOUT_LOGGING"/> </settings> 测试,可以看到 阅读全文
posted @ 2022-07-22 15:28 z-laoyao 阅读(82) 评论(0) 推荐(0) 编辑
摘要: 在service层中获取HttpServletRequest,只要添加如下代码即可 HttpServletRequest request = ((ServletRequestAttributes) RequestContextHolder.getRequestAttributes()).getReq 阅读全文
posted @ 2022-07-22 15:20 z-laoyao 阅读(694) 评论(0) 推荐(0) 编辑