上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 81 下一页
摘要: https://zhuanlan.zhihu.com/p/529648484 https://mp.weixin.qq.com/s?__biz=MzA4MjM0MTQ1Mg==&mid=2458785773&idx=1&sn=fdcef7b1731e1da5314772fee794f78c&chks 阅读全文
posted @ 2022-08-01 14:18 Mars.wang 阅读(23) 评论(0) 推荐(0)
摘要: 参考:https://zhuanlan.zhihu.com/p/159450620 首先,到底啥是分布式事务呢,比如我们在执行一个业务逻辑的时候有两步分别操作A数据源和B数据源,当我们在A数据源执行数据更改后,在B数据源执行时出现运行时异常,那么我们必须要让B数据源的操作回滚,并回滚对A数据源的操作 阅读全文
posted @ 2022-08-01 13:56 Mars.wang 阅读(433) 评论(0) 推荐(0)
摘要: Springboot动态装载卸载Bean springboot的validation(转) springboot数据格式验证(二)——自定义日期格式验证 springboot数据格式验证(一) 在springboot中自定义了一个校验注解 @Target({ElementType.ANNOTATIO 阅读全文
posted @ 2022-08-01 09:35 Mars.wang 阅读(1198) 评论(0) 推荐(0)
摘要: https://graphql.cn/learn/ 阅读全文
posted @ 2022-07-29 17:37 Mars.wang 阅读(140) 评论(0) 推荐(0)
摘要: 通过前面的博文,我们可以发现graphQL功能很强大,那么如果我们将其用到生产环境,还需要考虑更多的问题? 1.graphQL支持http接口吗?GET、POST的查询如何实现? 2.graphQL支持分页吗? 上面两个问题,在实际工作中非常普遍,通过研究发现,都是可以实现的 一、HTTP请求 根据 阅读全文
posted @ 2022-07-29 16:43 Mars.wang 阅读(854) 评论(0) 推荐(0)
摘要: 参考: https://wenku.baidu.com/view/3712610bb7daa58da0116c175f0e7cd184251804.html https://blog.csdn.net/u013343616/article/details/120492725 https://blog 阅读全文
posted @ 2022-07-28 16:12 Mars.wang 阅读(1166) 评论(0) 推荐(0)
摘要: 参考:https://blog.csdn.net/WXF_Sir/article/details/124603774 https://www.jianshu.com/p/36a065065e3c 1. 从无到有 —— 了解Bean容器首先得了解Scope(作用域),简单介绍两种。 1. single 阅读全文
posted @ 2022-07-27 13:17 Mars.wang 阅读(2603) 评论(0) 推荐(0)
摘要: 想封装一个调用远程http接口的工具类。 第一个想到的就是Springboot中的RestTemplate,写了一个get请求,很容易就成功了。 但是写post请求的时候,无论怎么搞,都拿不到请求值。不得已换成了okHttp,很快就成功了。 把代码贴在这里,做一个记录。 统一了GET、POST请求的 阅读全文
posted @ 2022-07-26 10:15 Mars.wang 阅读(173) 评论(0) 推荐(0)
摘要: graphiql是一个graphql浏览器IDE,可以自动提示graphql语法是否正确,给出建议。 这对于刚开始学习graphql的同学是非常棒的工具。 一、graphiql依赖包 项目中用到的依赖包如下: <dependency> <groupId>com.graphql-java</group 阅读全文
posted @ 2022-07-25 09:31 Mars.wang 阅读(915) 评论(0) 推荐(0)
摘要: springboot过滤器和拦截器 定义一个拦截器从,session中反查出用户信息,当然这只是一个demo @Component public class HttpRequestInterceptor implements HandlerInterceptor { @Override public 阅读全文
posted @ 2022-07-21 10:30 Mars.wang 阅读(73) 评论(0) 推荐(0)
上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 81 下一页