2022年8月30日
摘要:
#sqlmapper <resultMap id="BaseResultMap" type="com.LogEntity" > <result column="ID" property="ID" /> <result column="content_md5" property="contentMd5
阅读全文
posted @ 2022-08-30 14:33
oktokeep
阅读(1059)
推荐(0)
摘要:
mybatis执行insert语句后,返回当前插入数据主键的方法 keyProperty区分大小写 #这样查询没有返回主键值 <insert id="addLog" useGeneratedKeys="true" keyProperty="id" parameterType="com.LogEnti
阅读全文
posted @ 2022-08-30 14:26
oktokeep
阅读(85)
推荐(0)
2022年8月23日
摘要:
# aspose word模板文件生成pdf package com.example.core.mydemo; import com.alibaba.fastjson.JSON; import com.aspose.words.*; import org.slf4j.Logger; import o
阅读全文
posted @ 2022-08-23 13:56
oktokeep
阅读(383)
推荐(0)
摘要:
# CountDownLatch demo演示数据分片多线程处理 package com.example.core.mydemo; import org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor; import java
阅读全文
posted @ 2022-08-23 13:52
oktokeep
阅读(139)
推荐(0)
摘要:
# CountDownLatch demo演示裁判和选手赛跑 package com.example.core.mydemo; import java.util.concurrent.CountDownLatch; import java.util.concurrent.ExecutorServic
阅读全文
posted @ 2022-08-23 13:52
oktokeep
阅读(42)
推荐(0)
2022年8月22日
摘要:
# Python3 dict和str互转 import ast str_of_dict = "{'key1': 'key1value111', 'key2': 'key2value222'}" newdict = ast.literal_eval(str_of_dict) print(type(st
阅读全文
posted @ 2022-08-22 10:50
oktokeep
阅读(231)
推荐(0)
2022年8月17日
摘要:
@Async异步方法对异常的处理,从内层向外层抛出机制 @RequestMapping(value = "/test", method = RequestMethod.GET) public String test(){ try { System.out.println("主方法执行开始>>>>>>
阅读全文
posted @ 2022-08-17 19:07
oktokeep
阅读(1374)
推荐(0)
摘要:
import logging fmt = "%(asctime)s %(filename)s[line:%(lineno)d] %(levelname)s: %(message)s" logging.basicConfig( level=logging.DEBUG, format=fmt, file
阅读全文
posted @ 2022-08-17 19:01
oktokeep
阅读(822)
推荐(0)
2022年8月15日
posted @ 2022-08-15 13:54
oktokeep
阅读(661)
推荐(0)
摘要:
#python批量读取excel csv文件插入mysql数据库 import os import csv import argparse import pymysql import sys class ConnectionDatabase(object): # 连接mysql数据库 def __i
阅读全文
posted @ 2022-08-15 13:50
oktokeep
阅读(772)
推荐(0)