随时随地笔记记录

##数据迁移

从一张表 移动到另外一张表

 insert into "GWJ_BUSINESS"."ME_ISSUE_LIBRARY_EDITOR"("ID","ISSUE_NAME","MEETING_NAME",CREATE_TIME,ISSUE_SORT,"USER_NAME") 
 
 select "ID","NAME","MEETING_TYPE_NAME","CREATE_DATE","SORT","CREATOR_USER" from "EXOA"."MEETING_ISSUE";";

git操作基本命令

1.首先切换到分支;(分支名)
 
git checkout hellomonkey
 
2.使用git pull 把分支代码pull下来;
 
git pull
 
3.切换到主分支;
 
git checkout master
 
4.把分支的代码merge到主分支;
 
git merge hellomonkey
 
5.git push推上去ok完成,现在 你自己分支的代码就合并到主分支上了。

IDEA分支合并到主分支
1、首先,先切换到main分支
在这里插入图片描述

2、把分支推到主分支
在这里插入图片描述
在这里插入图片描述

备注
若不同分支要切换,前提要把当前分支提交下,不然会被要求合并代码
在这里插入图片描述

3、linux查看端口

netstat -nltp | grep 端口号

4、yum安装软件命令

(1)yum -y install 包名

eg: yum -y install nginx
eg: yum -y install java
(2) 卸载

yum remove 包名

5、linux运行rpm文件

 rpm -ivh 文件名

spring 注解 类 详解

AntPathMatcher 匹配接口路径 一般在接口校验权限用到

AntPathMatcher antPathMatcher = new AntPathMatcher();

antPathMatcher.isPattern("/user/001");// 返回 false
antPathMatcher.isPattern("/user/*"); // 返回 true
antPathMatcher.match("/user/001","/user/001");// 返回 true
antPathMatcher.match("/user/*","/user/001");// 返回 true
antPathMatcher.matchStart("/user/*","/user/001"); // 返回 true
antPathMatcher.matchStart("/user/*","/user"); // 返回 true
antPathMatcher.matchStart("/user/*","/user001"); // 返回 false
antPathMatcher.extractPathWithinPattern("uc/profile*","uc/profile.html"); // 返回 profile.html
antPathMatcher.combine("uc/*.html","uc/profile.html"); // uc/profile.html

6.java中时间格式注意
在这里插入图片描述
在这里插入图片描述
6.IDEA配置新建类的时候 作者和时间
打开setting
在这里插入图片描述
点确定即可。

7.IDEA中.gitignore配置不生效解决方案=
先进入项目所在的文件夹

git rm -r --cached .
git add .
git commit -m "update .gitignore"

8.IDEA拉取Github超时
配置Git代理
git config --global http.proxy http://代理服务器地址:端口号

git config --global https.proxy https://代理服务器地址:端口号

如果出现你把本地的gitlab拉不了代码,则需要把代理删除
取消代理

git config --global --unset http.proxy

git config --global --unset https.proxy

9.虚拟机新建报错------设置基础软件仓库时出错
设置
解决方案:
先开启网络
在这里插入图片描述

如果是centOS8图片中的7修改为8

http://mirrors.aliyun.com/centos/7/os/x86_64
如果是centos8 也是一样的

http://mirrors.aliyun.com/centos/7/os/x86_64

在这里插入图片描述
在这里插入图片描述

IDEA本地暂存操作

假如dev分支不小心写了代码
在这里插入图片描述

然后切换到你要的分支,点commit

在这里插入图片描述
再切换回来

码云地址:https://github.com/hongjiatao/spring-boot-anyDemo
欢迎交流,一起进步!

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

有点东西且很多

你的鼓励是我最大的动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值