1.knife4j
@ApiImplicitParams({
@ApiImplicitParam(name = "appId", value = "客户唯一id", required = true, paramType = "body"),
})
- 字符串替换不区分大小写:
“(?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;