随笔分类 -  springBoot

摘要:public class CleanCommons { private static Pattern pattern = Pattern.compile("/\\*.+?\\*/", Pattern.DOTALL); public static void main(String[] args) th 阅读全文 »
posted @ 2021-03-18 08:52 皮军旗 阅读(419) 评论(0) 推荐(0) 编辑
摘要:import org.springframework.beans.BeansException; import org.springframework.context.ApplicationContext; import org.springframework.context.Application 阅读全文 »
posted @ 2021-03-12 09:09 皮军旗 阅读(153) 评论(0) 推荐(0) 编辑
摘要:import java.io.File; /** * 删除文件和目录 * */ public class DeleteFileUtil { /** * 删除文件,可以是文件或文件夹 * * @param fileName * 要删除的文件名 * @return 删除成功返回true,否则返回fals 阅读全文 »
posted @ 2021-03-02 17:31 皮军旗 阅读(705) 评论(0) 推荐(0) 编辑
摘要:网上大多数博客的代码经过测试都是无用的,因为业务需要所以自己实现并封装了工具类供大家参考。 引入jave(多媒体处理包) pom依赖 <!-- jave 核心依赖 --> <dependency> <groupId>ws.schild</groupId> <artifactId>jave-core< 阅读全文 »
posted @ 2021-03-02 17:19 皮军旗 阅读(3246) 评论(0) 推荐(0) 编辑
摘要:如何通过访问某一个网页上的一个下载链接下载文件到本地呢?我学习了一下,利用httpget1,httpResponse1来判断网络是否连接访问成功,又通过httpget2,httpResponse2来访问下载链接实现文件下载。 注意:在使用httpget2之前需使用语句“ httpget1.abort 阅读全文 »
posted @ 2021-03-02 14:32 皮军旗 阅读(3118) 评论(0) 推荐(0) 编辑
摘要:原文地址:https://blog.csdn.net/chenyun19890626/article/details/54631817 原理很简单就是把多个视频文件的内容按顺序写到一个视频文件中 代码如下: public static void CombineFile(String path,Str 阅读全文 »
posted @ 2021-01-12 09:06 皮军旗 阅读(1061) 评论(0) 推荐(0) 编辑
摘要:FFmpeg是一套可以用来记录、转换数字音频、视频,并能将其转化为流的开源计算机程序。采用LGPL或GPL许可证。它提供了录制、转换以及流化音视频的完整解决方案。它包含了非常先进的音频/视频编解码库libavcodec,为了保证高可移植性和编解码质量,libavcodec里很多code都是从头开发的 阅读全文 »
posted @ 2021-01-08 15:26 皮军旗 阅读(1752) 评论(0) 推荐(0) 编辑
摘要:import org.springframework.boot.CommandLineRunner; import org.springframework.stereotype.Component; @Component public class OpenBrowser implements Com 阅读全文 »
posted @ 2021-01-05 14:45 皮军旗 阅读(2096) 评论(0) 推荐(1) 编辑
摘要:CorsConfig跨域配置类一 import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springfra 阅读全文 »
posted @ 2020-12-18 11:31 皮军旗 阅读(335) 评论(0) 推荐(0) 编辑
摘要:Java中经常出现自定义的 properties 配置文件,可以简化更换参数时的复杂度 第一种方式(可用): ResourceBundle:这个类主要用来解决国际化和本地化问题。 说的简单点,这个类的作用就是读取资源属性文件(properties),然后根据.properties文件的名称信息(本地 阅读全文 »
posted @ 2020-11-11 14:48 皮军旗 阅读(563) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示