jjw

写给自己的博客。 记录学习的点滴以备查。
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2024年1月13日

摘要: unit Unit1; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, V 阅读全文

posted @ 2024-01-13 16:28 jjw 阅读(76) 评论(0) 推荐(0) 编辑

2024年1月11日

摘要: 一、安装过程中有一步要跳过检测安装,否则会花费很多时间。 二、安装后要修改镜像源为国内的:etc/apt/sources.list,这样后期apt install 时就方便了。 其它: 1、安装MYSQL wget https://repo.mysql.com//mysql-apt-config_0 阅读全文

posted @ 2024-01-11 11:56 jjw 阅读(9) 评论(0) 推荐(0) 编辑

2024年1月10日

摘要: 关于TJSONConverters的使用 unit Unit1; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.C 阅读全文

posted @ 2024-01-10 17:18 jjw 阅读(40) 评论(0) 推荐(0) 编辑

摘要: 涉及的重要类 REST.Json,REST.JsonReflect,REST.Json.Interceptors, REST.Json.Types单元中。 一、TJson类 最简单的一个类,提供了JSON -> OBJECT和OBJECT -> JSON几个方法,方法有TJsonOptions参数, 阅读全文

posted @ 2024-01-10 16:41 jjw 阅读(119) 评论(0) 推荐(0) 编辑

2024年1月7日

摘要: procedure TForm1.Button1Click(Sender: TObject); var v: variant; begin { [ODBC] DRIVER=SQL Server 会报错 DRIVER=ODBC Driver 18 for SQL Server 没问题 } dbProp 阅读全文

posted @ 2024-01-07 00:04 jjw 阅读(21) 评论(0) 推荐(0) 编辑

2023年9月20日

摘要: { TDateTimeConverter } function TDateTimeConverter.CanConvert(ATypeInf: PTypeInfo): Boolean; begin Result := True; end; function TDateTimeConverter.Re 阅读全文

posted @ 2023-09-20 21:36 jjw 阅读(22) 评论(0) 推荐(0) 编辑

2023年8月25日

摘要: TOL = class(TObject) public procedure W(W: TJsonWriter; Instance: TObject; Options: TTextWriterWriteObjectOptions); end; TPerson = class private FName 阅读全文

posted @ 2023-08-25 14:06 jjw 阅读(144) 评论(0) 推荐(0) 编辑

2023年8月22日

摘要: TFileServiceFunction = record strict private type TFunctionNameRec = record const LoadFile = 'LoadFile'; SaveFile = 'SaveFile'; GetAllFileNames = 'Get 阅读全文

posted @ 2023-08-22 14:35 jjw 阅读(80) 评论(0) 推荐(0) 编辑

2023年8月17日

摘要: mormot2框架中有个THttpServer类,它有一个Router属性,定义如下: property Router: TUriRouter read fRoute; Router是添加路由的入口点,它有和http协议对应的get, post, put, delete等方法,这些方法可以添加路由, 阅读全文

posted @ 2023-08-17 10:23 jjw 阅读(467) 评论(0) 推荐(0) 编辑

2023年8月15日

摘要: unit Unit1; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, V 阅读全文

posted @ 2023-08-15 16:20 jjw 阅读(193) 评论(0) 推荐(0) 编辑