Spring Cron常见表达式
每分钟@Scheduled(cron = “0 * * * * *”) 每10秒@Scheduled(cron = “*/10 * * * * *”) 每5分钟@Scheduled(cron = “0 0/5 * * * ?”) 子夜@Scheduled(cron = “0 0 0 * * *”) 每天6点@Scheduled(cron = “0 0 6 * * *”) 每月1号凌晨1点执行一次@
每分钟@Scheduled(cron = “0 * * * * *”) 每10秒@Scheduled(cron = “*/10 * * * * *”) 每5分钟@Scheduled(cron = “0 0/5 * * * ?”) 子夜@Scheduled(cron = “0 0 0 * * *”) 每天6点@Scheduled(cron = “0 0 6 * * *”) 每月1号凌晨1点执行一次@
先做一个clientRealIp变量,clientRealIp用http_x_forwarded_for的第一个IP 1234map $http_x_forwarded_for $clientRealIp { "" $remote_addr; ~^(?P<firstAddr>[0-9\.]+),?.*$ $firs
1234567891011121314151617181920212223fun trim(image: BufferedImage): BufferedImage { val width = image.width val height = image.height var top = height / 2 var bottom = top var lef
默认方式: 123456789101112131415wx.getSetting({ success: res => { if (res.authSetting['scope.userInfo']) { wx.getUserInfo({ success: res
这个是2.3.x版本的,其他版本可以源码里面拿 https://github.com/spring-projects/spring-session/blob/2.3.x/spring-session-jdbc/src/main/resources/org/springframework/session/jdbc/schema-mysql.sql 12345678910111213141516171
创建nginx.repo 1vim /etc/yum.repos.d/nginx.repo 输入 12345[nginx]name=nginx repobaseurl=http://nginx.org/packages/centos/$releasever/$basearch/
访问 https://jdk.java.net/15/ 复制下载链接 到服务器上用wget下载 1wget https://download.java.net/java/GA/jdk15.0.1/51f4f36ad4ef43e39d0dfdbaf6549e32/9/GPL/openjdk-15.0.1_
1. 添加用户12adduser deploypasswd deploy 2. 设置sudoers设置sudoers为可编辑 1chmod +w /etc/sudoers 增加deploy用户 1vim /etc/sudoers 恢复sudoers为不可编辑 1chmod -w /etc/sudoers 切换到deploy用
123456@Beanfun webMvcConfigurer() = object : WebMvcConfigurer { override fun addCorsMappings(registry: CorsRegistry) { registry.addMapping("/api/**").allow