10 2021 档案

摘要:强行提交: git push -f origin master 阅读全文
posted @ 2021-10-31 18:27 非帆丶 阅读(13) 评论(0) 推荐(0) 编辑
摘要:进入项目的 .git目录 git config user.name "用户名" git config user.email "邮箱" 阅读全文
posted @ 2021-10-31 18:24 非帆丶 阅读(97) 评论(0) 推荐(0) 编辑
摘要:一、生成一个SSH公钥就可以连接多个平台 第一步:设置全局用户名,必须设置,名字随意填写 git config --global user.name "名字" 第二步:设置全局邮箱,仅仅表明你的身份,与github、gitee上注册的可以不一样 git config --global user.em 阅读全文
posted @ 2021-10-31 17:50 非帆丶 阅读(1016) 评论(0) 推荐(0) 编辑
摘要:一、数据库中需要有"version"字段 二、对应实体类属性上添加"@Version"注解 @Version @TableField(fill = FieldFill.INSERT) //自动填充 private Integer version; 三、写配置类、配置乐观锁 @Configuratio 阅读全文
posted @ 2021-10-29 21:55 非帆丶 阅读(347) 评论(0) 推荐(0) 编辑
摘要:1、在实体类需要自动填充字段属性中添加注解 @TableField(fill = FieldFill.INSERT) private Data createTime; @TableField(fill = FieldFill.INSERT_UPDATE) private Data updateTim 阅读全文
posted @ 2021-10-27 22:34 非帆丶 阅读(170) 评论(0) 推荐(0) 编辑
摘要:报错:Data truncation: Out of range value for column 'id' at row 1 原因:mybatis-plus开启主键雪花策略,生成19位随机字符串,数据库中的主键字段为int类型,长度小于19位。 解决:将数据库中表的主键字段设置为bigint类型 阅读全文
posted @ 2021-10-27 21:42 非帆丶 阅读(2982) 评论(0) 推荐(0) 编辑
摘要:报错:Field 'id' doesn't have a default value 原因:mybatis-plus开启主键自增策略,数据库中的主键字段没有选择自增 解决:将数据库中表的主键字段设置为自增 报错信息如下: 解决方案如下: 阅读全文
posted @ 2021-10-27 21:34 非帆丶 阅读(478) 评论(0) 推荐(0) 编辑
摘要:主键默认策略(注解不加默认为ASSIGN_ID): @TableId(type = IdType.ASSIGN_ID) 自增主键策略: @TableId(type = IdType.AUTO) 配置文件设置主键生成策略: mybatis-plus.global-config.db-config.id 阅读全文
posted @ 2021-10-27 21:19 非帆丶 阅读(139) 评论(0) 推荐(0) 编辑
摘要:一、application.properties文件 mybatis-plus.configuration.log-impl=org.apache.ibatis.logging.stdout.StdOutImpl 二、application.yml文件 mybatis-plus: configura 阅读全文
posted @ 2021-10-27 20:00 非帆丶 阅读(1477) 评论(0) 推荐(0) 编辑
摘要:spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver spring.datasource.url=jdbc:mysql://localhost:3306/mybatis_plus?serverTimezone=GMT%2B8 spr 阅读全文
posted @ 2021-10-26 21:24 非帆丶 阅读(398) 评论(0) 推荐(0) 编辑
摘要:阿里云官网:https://developer.aliyun.com/mvn/guide 第一步:将仓库信息复制到settings.xml文件中 第二步:配置maven仓库地址 注意:路径需要使用斜杠"/",不要用反斜杠"\" 第三步:idea配置maven 1、当前工程下maven的配置: Fil 阅读全文
posted @ 2021-10-23 10:51 非帆丶 阅读(2770) 评论(0) 推荐(0) 编辑
摘要:Docker官网安装地址: https://docs.docker.com/engine/install/centos/ 第一步:移除以前安装的docker yum remove docker* 第二步:配置yum源 阿里源: sudo yum install -y yum-utils sudo y 阅读全文
posted @ 2021-10-21 10:47 非帆丶 阅读(48) 评论(0) 推荐(0) 编辑
摘要:一、Go环境安装 第一步:下载Linux平台安装包 官网地址:https://golang.google.cn/dl/ 第二步:将文件解压到 /usr/local 目录中 tar -zxvf go1.17.2.linux-amd64.tar.gz -C /usr/local/ 第三步:配置环境变量 阅读全文
posted @ 2021-10-19 15:08 非帆丶 阅读(133) 评论(0) 推荐(0) 编辑
摘要:第一步:配置名称、邮箱 git config --global user.name "填写名字" git config --global user.email "填写邮箱" 第二步:根据邮箱生成签名 ssh-keygen -t rsa -C '填写邮箱' -t:指定哪种加密算法 rsa:一种非对称加 阅读全文
posted @ 2021-10-18 11:29 非帆丶 阅读(207) 评论(0) 推荐(0) 编辑
摘要:方法一:yum命令安装 yum -y install git 此方法安装到 /usr/libexec/git-core 目录中,安装版本比较老 方法二:源码安装 github地址: http://git-scm.com/download/linux 官网地址: http://git-scm.com/ 阅读全文
posted @ 2021-10-18 10:54 非帆丶 阅读(198) 评论(0) 推荐(0) 编辑
摘要:首先json数据为下: { "code": 200, "data": { "pcode": "1000", "annList": ["java.util.ArrayList", [{ "Name": "no1", "sex": "1" }, { "Name": "n02", "@sex": "2" 阅读全文
posted @ 2021-10-16 16:14 非帆丶 阅读(1626) 评论(0) 推荐(0) 编辑
摘要:MongDB官网下载地址 https://www.mongodb.com/try/download/compass 一、linux下载安装与连接 步骤一:上传压缩包到Linux中,解压到当前目录: tar -xvf mongodb-linux-x86_64-rhel70-5.0.3.tgz 步骤二: 阅读全文
posted @ 2021-10-16 13:37 非帆丶 阅读(446) 评论(0) 推荐(0) 编辑
摘要:MongDB下载地址 https://www.mongodb.com/try/download/community 一、windows下载与安装 下载zip文件包。 MongoDB的版本命名规范如:x.y.z;y为奇数时表示当前版本为开发版,如:1.5.2、4.1.13; y为偶数时表示当前版本为稳 阅读全文
posted @ 2021-10-16 12:37 非帆丶 阅读(62) 评论(0) 推荐(0) 编辑