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点执行一次@
1234567891011121314151617181920212223fun trim(image: BufferedImage): BufferedImage { val width = image.width val height = image.height var top = height / 2 var bottom = top var lef
这个是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
访问 https://jdk.java.net/15/ 复制下载链接 到服务器上用wget下载 1wget https://download.java.net/java/GA/jdk15.0.1/51f4f36ad4ef43e39d0dfdbaf6549e32/9/GPL/openjdk-15.0.1_
123456@Beanfun webMvcConfigurer() = object : WebMvcConfigurer { override fun addCorsMappings(registry: CorsRegistry) { registry.addMapping("/api/**").allow
Spring Boot打包bootjar这样就可以了 123jar { from { configurations.compileClasspath.collect { it.isDirectory() ? it : zipTree(it) } }} 指定Main Class,我是用Kotlin,所以类名后面加Kt 123456
页面添加代码,每100ms执行一下 debugger ,用户打开调试界面的时候会反复进入debug状态,从而无法顺利调试页面 1setInterval(function () { debugger }, 100); 需要注意这个必须写在一行上,如果 debugger 语句在单独一行上,可以通过在这行上设置 条件断点 条件为 false从而跳过这个调试。
排除文件:在左侧需要排除的文件上点击右键,选择 Mark as Plain Text 排除目录:在左侧需要排除的目录点击右键,选择 Mark Directory as ,然后选择 Excluded 参考:https://www.jetbrains.com/help/idea/indexing.html
增加以下配置 1234jar { enabled = true from { configurations.compileClasspath.collect { it.isDirectory() ? it : zipTree(it) } }}