2021-08-05

1.knife4j

@ApiImplicitParams({
            @ApiImplicitParam(name = "appId", value = "客户唯一id", required = true, paramType = "body"),
 })
  1. 字符串替换不区分大小写:
    “(?i)”

3.RocketMq创建消费者不成功,但dashBoard仍然能看到 ,要加启动日志
4.解决mybaits-plus不能mock

 @BeforeEach
    public void setUp() {
        MockitoAnnotations.initMocks(this);
        TableInfoHelper.initTableInfo(new MapperBuilderAssistant(new MybatisConfiguration(), ""), ApiPassportUser.class);
        TableInfoHelper.initTableInfo(new MapperBuilderAssistant(new MybatisConfiguration(), ""), ApiPassportSetting.class);
        TableInfoHelper.initTableInfo(new MapperBuilderAssistant(new MybatisConfiguration(), ""), ApiUserRelation.class);
    }

5.源码解读
https://hub.fastgit.org/doocs/source-code-hunter
6.服务指定读取的nacos文件名
spring.cloud.nacos.config.prefix=*** 默认是服务名
7.环境变量添加windows
cmd
path=%path%;C:\Users\Administrator\AppData\Local\Programs\Python\Python38
8.强制更新maven
mvn clean install -e -U -Dmaven.test.skip=true
9.数据库链接
useUnicode=true&characterEncoding=UTF-8&useSSL=false&allowPublicKeyRetrieval=true&zeroDateTimeBehavior=convertToNull&serverTimezone=GMT%2B0
10.解决死锁
SHOW ENGINE INNODB STATUS;

show processlist;

select * from information_schema.processlist where time>500;

select concat("kill ", ID, ";") as command
from information_schema.processlist where time>500;

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

友情链接更多精彩内容