搭建Gitea仓库 搭建Gitea仓库 下载 下载二进制包 wget -O gitea https://dl.gitea.com/gitea/1.25.2/gitea-1.25.2-linux-amd64 对文件进行授权 chmod +x gitea cp gitea /usr/local/bin/gitea 准
Linux安装git 安装git 使用 yum 安装 yum -y install git git --version yum安装git目录为 /usr/libexec/git-core yum安装的版本最高只能到1.8.31 编译安装 如果使用yum安装了git需要先移除旧版本 sudo yum remove g
LocalDateTime JDK8新特性里提供了3个时间类:LocalDate、LocalTime、LocalDateTime 1. 为什么需要LocalDate、LocalTime、LocalDateTime 1.1 Date如果不格式化,打印出的日期可读性差 Tue Sep 10 09:34:04 CST 2019 1
CompletableFuture异步编程 我们异步执行一个任务时,一般是用线程池Executor去创建。如果不需要有返回值, 任务实现Runnable接口;如果需要有返回值,任务实现Callable接口,调用Executor的submit方法,再使用Future获取即可。如果多个线程存在依赖组合的话,我们怎么处理呢?可使用同步组件Count
spring事务 springboot 1、什么是事务? 事务是逻辑上的一组操作,要么都执行,要么都不执行。 spring事务的本质其实就是数据库对事务的支持,没有数据库的事务支持,spring是无法提供事务功能的。 我们一般使用JDBC操作事务的时候,代码如下: * (1)获取连接 Connection con = DriverMana
idea常用插件 idea常用插件 MybatisCodeHelperPro mapper和xml可以来回跳转,mybatis自动补全及语法错误提示 MybatisX mapper和xml可以来回跳转,mybatis.xml,mapper.xml提示,mapper和 xml支持自动提示 My
spring boot使用SpringSecurity自定义登录 springboot 1、简介 Spring Security 是 Spring 家族中的一个安全管理框架。相比于另外一个安全框架Shiro,它提供了更丰富的功能,社区资源也比Shiro丰富。 参考文档:https://juejin.cn/post/7106300827035238407 一般来说中大型的项目都是使用Sp
Spring Boot集成Quartz springboot 1、简介 Spring Boot 内置注解方式实现的定时任务,在一定程度上也能解决一定的业务场景问题,但是若做更复杂的动作,例如启停任务、删除任务等等操作,实现起来则稍显复杂,此时便可以通过集成开源任务框架来实现。 常见的定时任务框架有 Quartz、elastic-job、xxl-job等等。 Q
Spring Boot读取配置文件 springboot 1、yaml配置文件中的配置信息 server: port: 8081 path: /hello person: name: zhangsan age: 20 boss: false birth: 2017/11/12 #map写法1:行内
Spring Boot设置异步以及设置默认定时任务 springboot 1、自定义异步线程池 @SpringBootApplication public class AsyncConfigExample{ @Bean WebMvcConfigurer configurer(){ return new WebMvcConfigurerAda