git强制回滚
//
git reset --hard 4586e7b93cf81db1fe421bd52fdbf6371fd207d3
git push -f
mysql修改默认值
//
alter table deep_evaluation change project_party_type project_party_type tinyint(1) NULL COMMENT '股项目方类型,1直签项目,2总包项目,3挂靠项目'
replaceAll的使用
.replaceAll("\\.","-")
jsonpath的使用(hutool)
JSON res = JSONUtil.parse(str);
String imageUrl = JSONUtil.getByPath(res, "data.video.cover").toString();
git从主干拉取分支
git checkout master
git checkout -b enterprise1.2.1
git push origin enterprise1.2.1:enterprise1.2.1
数组转list
Arrays.asList(companyList.split(","))
es删除数据
company_basic/_delete_by_query
{
"query": {
"bool": {
"must": [
{
"match": {
"creditCode": "91410102349468474K"
}
}
],
"must_not": [ ],
"should": [ ]
}
}
}
mysql自定义排序
order by field(pc.model_credit_grade,'','B','BB','BBB','A','AA','AAA'), ISNULL(model_credit_grade) || model_credit_grade = ''
Resource与Autowired的区别
@Resource默认按照名称方式进行bean匹配,@Autowired默认按照类型方式进行bean匹配
@Resource(import
javax.annotation.Resource;)是J2EE的注解,@Autowired(
import org.springframework.beans.factory.annotation.Autowired;)是Spring的注解
数据库新增数据,时间不对 查看此语句
select now();