散碎知识点

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();
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值