上一页 1 ··· 32 33 34 35 36 37 38 39 40 ··· 70 下一页
摘要: /** * 判断字符串中某个字符存在的个数 * @param str1 完整字符串 * @param str2 要统计匹配个数的字符 * @return */ public static int countStr(String str1, String str2) { int count=0; if 阅读全文
posted @ 2021-04-10 23:27 yvioo 阅读(5642) 评论(0) 推荐(0)
摘要: import java.util.LinkedList; public class Test1 { /** * 位置实体类,根据自己的来即可 */ static class Position{ /** * 纬度 */ private Double latitude; /** * 经度 */ priv 阅读全文
posted @ 2021-04-09 09:28 yvioo 阅读(2101) 评论(0) 推荐(0)
摘要: Windows 系统:C:\Windows\System32\drivers\etc\hostsLinux 系统:/etc/hostsMac(苹果电脑)系统:/etc/hostsAndroid(安卓)系统:/system/etc/hostsiPhone(iOS)系统:/etc/hosts修改方法,把 阅读全文
posted @ 2021-04-08 13:43 yvioo 阅读(146) 评论(0) 推荐(0)
摘要: 引入jar包 下载地址:https://yvioo.lanzous.com/iezpdno3mob 然后打开下载的目录打开cmd执行 mvn install:install-file -Dfile=aspose-words-15.8.0-jdk16.jar -DgroupId=com.aspose 阅读全文
posted @ 2021-04-05 02:07 yvioo 阅读(3351) 评论(2) 推荐(0)
摘要: yum -y install fontconfig 在/usr/shared/fonts目录下新建一个目录chinese 然后打开windows本地的字体库 将这里面的所有文件上传到centos里我们刚创建的chinese文件夹中 赋权限 chmod 777 /usr/share/fonts/chi 阅读全文
posted @ 2021-04-05 01:55 yvioo 阅读(753) 评论(0) 推荐(0)
摘要: Caused by: io.lettuce.core.RedisCommandExecutionException: MISCONF Redis is configured to save RDB snapshots, but it is currently not able to persist 阅读全文
posted @ 2021-04-03 23:15 yvioo 阅读(898) 评论(0) 推荐(0)
摘要: num2必须改用传入String类型 //加法 BigDecimal result1 = num1.add(num2); //减法 BigDecimal result2 = num1.subtract(num2); //乘法 BigDecimal result3 = num1.multiply(nu 阅读全文
posted @ 2021-04-03 17:18 yvioo 阅读(222) 评论(0) 推荐(0)
摘要: /** * 计算出页码 */ public static int getPageNo(int pageNo,int pageSize){ if (pageNo<=1){ return 0; } return (pageNo-1)*pageSize; } 阅读全文
posted @ 2021-04-03 01:34 yvioo 阅读(443) 评论(0) 推荐(0)
摘要: IN查询 @Select({"<script> " + " select * "+ " from business_threat bt \n" + " join abnormal_event_type aet on bt.event_type_id = aet.id " + " where 1=1 阅读全文
posted @ 2021-04-03 01:26 yvioo 阅读(573) 评论(0) 推荐(0)
摘要: 在jar包目录下创建一个文件,后缀为 .sh #!/bin/bash # stop service pid=`ps -ef | grep "jar包名字" | grep -v "tail" | grep -v "grep" | awk '{print $2}'` if [ "$pid" ];then 阅读全文
posted @ 2021-03-30 21:50 yvioo 阅读(739) 评论(0) 推荐(0)
上一页 1 ··· 32 33 34 35 36 37 38 39 40 ··· 70 下一页