Kotlin BufferedImage trim
1234567891011121314151617181920212223fun trim(image: BufferedImage): BufferedImage { val width = image.width val height = image.height var top = height / 2 var bottom = top var lef
1234567891011121314151617181920212223fun trim(image: BufferedImage): BufferedImage { val width = image.width val height = image.height var top = height / 2 var bottom = top var lef
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
增加以下配置 1234jar { enabled = true from { configurations.compileClasspath.collect { it.isDirectory() ? it : zipTree(it) } }}