摘要:
@Component public class MatchLogUtil { @Autowired private OtcMatchLogMapper otcMatchLogMapper; private static MatchLogUtil matchLogUtil; @PostConstruc 阅读全文
摘要:
https://blog.csdn.net/llf_1241352445/article/details/83473783 阅读全文
摘要:
https://blog.csdn.net/goslingfly/article/details/78573716 阅读全文
摘要:
Java的循环遍历,如何保证每个循环体都是单独的事务 package demo; import org.apache.log4j.Logger;import org.springframework.beans.factory.annotation.Autowired;import org.sprin 阅读全文
摘要:
https://www.cnblogs.com/liuyansheng/p/6531915.html 阅读全文
摘要:
在工作中可能遇到这样的情况,随着业务的增长,用户量也在逐渐增长,终究有一天,一到高峰期,数据库服务器CPU利用率直飚100%。 最简单的做法就是直接提升硬件性能,简单粗暴,直接有效。 假如我们最开始的服务器CPU核数是4,然后我们觉得4个有点扛不住,那就直接给他搞16个核。这下应该没啥问题了吧,用户 阅读全文
摘要:
1.配置用户名和邮箱 $ git config --global user.name "xxxxxx" $ git config --global user.email "xxxxxx@163.com" 2.生成密钥对 $ ssh-keygen -t rsa -C "xxxxxx@163.com" 阅读全文
摘要:
一、 功能描述: 1.对List中的数据进行分割并作为参数使用多线程处理对应逻辑 2.避免了使用runnable方式和spring容器中的bean无法注入的问题 3.可以极大提高程序的执行效率、本程序中的线程数可以灵活配置 二、 代码1: public Object demo() { //1.获取对 阅读全文
摘要:
1.创建虚拟列 alter table otc_transaction_complete add column create_time_index datetime GENERATED ALWAYS AS (date_format(create_time,'%Y-%m-%d')); 上面这条语句解释 阅读全文
摘要:
防火墙方式:https://blog.csdn.net/loongwong2011/article/details/52709853 mysql自带方式: mysql 8.X.X版本多个ip限制访问 随笔记录,由于客户要求数据库不同ip访问,查了很多,多数都是ip段或者所有ip可以访问; selec 阅读全文