自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(10)
  • 收藏
  • 关注

原创 记录一次vue 和 prisma的问题排查

项目背景: 前端使用vue 后端使用node其中后端服务器框架用express orm框架使用prisma 数据库是mysql前后端使用json传输数据问题:数据库BigInt报错TypeError: Do not know how to serialize a BigInt查了一下发现根本就不是问题 是一个历史遗留问题,然后chrome的程序员开玩笑就不给解析,但是实际上一行代码就解决问题了解决方案: 在用到BigInt的serialize之前 给BigInt换上新的toJSON()函数

2021-09-23 00:44:34 1223

原创 (踩坑笔记)多模块微服务Maven打包报错总结

多模块微服务Maven打包报错总结如题Unable to find main class程序包xxx不存在transitive dependencies如题多模块的时候会出现奇奇怪怪的问题,记录如下Unable to find main class当common等不需要打包为微服务的模块时,引入SpringBoot会强制要求Main类。解决方法直接新建Main类和psvm(什么也不写也行)工程+pom<packaging>pom</packaging> pl

2021-06-23 21:14:17 690

翻译 Asio官方文档 的非官方中文翻译 (Tutorial-1-2)

自己翻译的, 没有任何参考价值Daytime.3 - An asynchronous TCP daytime serverhttps://www.boost.org/doc/libs/1_74_0/doc/html/boost_asio/tutorial/tutdaytime3.htmlDaytime.3 - An asynchronous TCP daytime servermain() 函数int main(){ try {我们得搞一个sever对象来接收客户端连过来的连接.

2020-08-28 06:03:05 228 1

翻译 Asio官方文档 的非官方中文翻译 (Tutorial-1-1)

自己翻译的 没有任何参考价值Daytime.2 - A synchronous TCP daytime serverhttps://www.boost.org/doc/libs/1_74_0/doc/html/boost_asio/tutorial/tutdaytime2.html前

2020-08-27 03:25:28 273

翻译 Asio官方文档 的非官方中文翻译 (Tutorial-1-0)

自己翻译的,没有任何参考价值Daytime.1 - A synchronous TCP daytime clienthttps://www.boost.org/doc/libs/1_74_0/doc/html/boost_asio/tutorial/tutdaytime1.htmlDaytime.1 - A synchronous TCP daytime client这次的教程演示一下怎么用asio实现一个TCP客户端程序.先从引入几个必要的头文件开始#include <iostre.

2020-08-26 22:39:37 220

翻译 Asio官方文档 的非官方中文翻译 (Tutorial-0-4)

自己翻译的 肯定会有错误\问题哈Timer.5 - Synchronising handlers in multithreaded programshttps://www.boost.org/doc/libs/1_74_0/doc/html/boost_asio/tutorial/tuttimer5.htmlTimer.5 - Synchronising handlers in multithreaded programs这次的教程会演示在一个多线程程序中用strand类模板来同步执行回调函数.

2020-08-26 20:04:30 245 3

翻译 Asio官方文档 的非官方中文翻译 (Tutorial-0-3)

自己翻译的 肯定会有错误\问题哈Timer.4 - Using a member function as a handlerhttps://www.boost.org/doc/libs/1_74_0/doc/html/boost_asio/tutorial/tuttimer4.htmlTimer.4 - Using a member function as a handler本例我们将会看到如何将一个类的成员函数作为回调执行函数.这次的程序应该跟上一篇教程 Timer.3中的程序执行结果一样.

2020-08-25 07:17:47 310

翻译 Asio官方文档 的非官方中文翻译 (Tutorial-0-2)

自己翻译的 肯定会有问题\错误哈Timer.3 - Binding arguments to a handlerhttps://www.boost.org/doc/libs/1_74_0/doc/html/boost_asio/tutorial/tuttimer3.htmlTimer.3 - Binding arguments to a handler在本教程中,我们将接着改上篇教程Timer.2里的程序,这次我们将把计时器修改为每秒触发一次.并以此演示如何向我们的回调函数传参.首先引入头文.

2020-08-25 06:20:52 160

翻译 Asio官方文档 的非官方中文翻译 (Tutorial-0-1)

自己翻译的 肯定会有错误\问题哈Timer.2 - Using a timer asynchronouslyhttps://www.boost.org/doc/libs/1_74_0/doc/html/boost_asio/tutorial/tuttimer2.htmlTimer.2 - Using a timer asynchronously本篇教程会演示如何用asio的异步回调函数功能来把上篇教程(Timer.1)中实现的阻塞计时器改成异步实现.先引入头文件#include <i.

2020-08-24 19:59:03 178

翻译 Asio官方文档 的非官方中文翻译 (Tutorial-0-0)

自己翻译的 肯定会有错误哈Timer.1 - Using a timer synchronouslyhttps://www.boost.org/doc/libs/1_74_0/doc/html/boost_asio/tutorial/tuttimer1.htmlTimer.1 - Using a timer synchronously本篇教程会带着你用asio里的timer相关类实现一个阻塞的定时器.首先,把几个用得到的头文件给include了."asio.hpp"里包含了asio所有的类.

2020-08-24 18:36:42 371

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除