摘要: #include <stdio.h> #include <stdlib.h> #include <time.h> #include <string.h> #include <stdbool.h> #include <dlfcn.h> #include <signal.h> #include <set 阅读全文
posted @ 2024-03-18 00:00 Coca-code 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 202401221657_《React相关(一) 写法》 //写法一 等价于写法二 const MyComponent = () => { //... } //写法二 const MyComponent: React.FC = () => { //... } 阅读全文
posted @ 2024-01-22 17:01 Coca-code 阅读(1) 评论(0) 推荐(0) 编辑
摘要: <!-- 6格 --> <div class="wrap-box wrap-6"> <div class="flex-inner"> <div class="flex-box1 flex-item"></div> <div class="flex-box2"> <div class="flex-it 阅读全文
posted @ 2024-01-10 23:47 Coca-code 阅读(5) 评论(0) 推荐(0) 编辑
摘要: function calculateAssembledSetsAndReturnSkus(suitComponents, inventory) { let componentCount = {}; let minComponent = {}; let result = {}; // Count co 阅读全文
posted @ 2023-12-14 23:29 Coca-code 阅读(1) 评论(0) 推荐(0) 编辑
摘要: ALTER TABLE user ADD COLUMN tel CHAR(11) AFTER wechat; #添加列 ALTER table customer modify column password varchar(200); #修改列类型 ALTER TABLE user ALTER CO 阅读全文
posted @ 2023-11-14 12:12 Coca-code 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 运行这个页面,背后是一大堆配置。接下来,就是写写逻辑,生成生成文件,因为remote server的东西也通了,几十张表也建了。 阅读全文
posted @ 2023-10-06 18:27 Coca-code 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 1. 对于mysql 5.7.42, 驱动(connector)选择:5.1.46。 2. 测试链接时:useSSL=true&enabledTLSProtocols=TLSv1.1 驱动链接字符串上要拼接上。 3. 驱动链接字符串: 高版本mysql,意味着高版本connector,选>=8; 低 阅读全文
posted @ 2023-10-06 12:40 Coca-code 阅读(11) 评论(0) 推荐(0) 编辑
摘要: 如图,循环依赖一直搞糊涂我,本来,mybatis就是因sql操作灵活性而采用,无可厚非,对于新手的我,一是项目需要,而是为求职职场操练,但“请君入问”感是还要配“mybatis-generator” plugin, 为了自动嘛。但是,我觉得这插件与Lombok某些生成代码严重重复... ...直到修 阅读全文
posted @ 2023-10-03 20:52 Coca-code 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 1. 应在pom.xml中的<dependenies>中引入<dependency>, 但错误地放在了<plugins>下。 2. 由于ctrl + c,ctrl + v他人代码,在引入Lombok地方应该是: import lombok.Data, 代码粗漏打了“import lombok.dat 阅读全文
posted @ 2023-10-03 10:36 Coca-code 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 当配置到最后,双击右侧maven tab,准备生成时,报红: 1. “Loading class `com.mysql.jdbc.Driver'. This is deprecated. The new driver class is `com.mysql.cj.jdbc.Driver'. The 阅读全文
posted @ 2023-09-30 18:38 Coca-code 阅读(11) 评论(0) 推荐(0) 编辑