##数据迁移
从一张表 移动到另外一张表
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
欢迎交流,一起进步!