原创 MongoDB修改數據類型,int與字符串互轉

operator_log爲集合名,operation_type爲字段名 {$type:2}代表type是2的,即字符串,查詢所有字符串的forEach,並複製,保存 db.operator_log.find({"operation_typ

原创 修改mysql讓自增id從某個值開始

前提:用mybatis plus 往設置@TableId(type = IdType.AUTO)導致插入的數據id很大,例:1273146808356372482 方法一:截斷表或刪除表再重新導入 方法二:alter table tabl

原创 com.jcraft.jsch.JSchException: invalid privatekey: [B@7b98f307

找了很久其他博客無法解決的,請認真讀這篇 前提:做結算對賬項目,需要用密鑰登錄工行ftp服務器下載對賬單(密鑰爲linux系統生成,命令ssh-keygen -t rsa),公鑰提供給工行對接人 用xshell-xftp工具,可以登錄服務

原创 springboot(原先是mybatis)整合mybatis-plus,注入報錯Error creating bean with name 'sqlSessionFactory'

Error creating bean with name 'sqlSessionFactory'  Caused by: java.lang.ClassNotFoundException: org.mybatis.logging.Log