随笔分类 -  随处发现

读取txt文件,并把文件类容转为String
摘要:1.File file = new File("D:\\gis_1.txt");2. public static String txt2String(File file){ StringBuilder result = new StringBuilder(); try{ BufferedReader 阅读全文

posted @ 2020-05-14 15:17 博客海沐沐 阅读(1590) 评论(0) 推荐(0)

logback-spring.xml的配置
摘要:<?xml version="1.0" encoding="UTF-8" ?><!-- 从高到地低 OFF 、 FATAL 、 ERROR 、 WARN 、 INFO 、 DEBUG 、 TRACE 、 ALL --><!-- 日志输出规则 根据当前ROOT 级别,日志输出时,级别高于root默认的 阅读全文

posted @ 2020-05-11 15:21 博客海沐沐 阅读(883) 评论(0) 推荐(0)

nginx.config 记录一下配置(没有解释)
摘要:user root root;worker_processes 1; #设置值和CPU核心数一致error_log /usr/local/nginx/logs/nginx_error.log crit; #日志位置和日志级别pid /usr/local/nginx/nginx.pid;#Specif 阅读全文

posted @ 2020-04-28 14:01 博客海沐沐 阅读(285) 评论(0) 推荐(0)

将字符串中下划线去掉并把下划线后面的首字母改为大写 如:ba_cd_sa 改为baCdSa
摘要:splitDownLineandAfterToUpperCase(str) { var s = str.split('_'); var newA=""; for(var i=1;i<s.length;i++){ newA += s[i].substring(0, 1).toUpperCase() + 阅读全文

posted @ 2019-10-14 12:12 博客海沐沐 阅读(1890) 评论(0) 推荐(0)

idea web打包
摘要:https://blog.csdn.net/lhp3000/article/details/78994010 阅读全文

posted @ 2019-05-29 10:50 博客海沐沐 阅读(89) 评论(0) 推荐(0)

滚动条隐藏
摘要:sryle="width:100%;height:100%;overflow:hidden;” 阅读全文

posted @ 2019-04-18 11:31 博客海沐沐 阅读(89) 评论(0) 推荐(0)

在xshell上面安装上传文件的命令
摘要:执行:yum install lrzsz yum -y install perl perl-devel yum install -y perl-Data-Dumper 安装完毕直接执行rz命令 阅读全文

posted @ 2019-03-26 12:04 博客海沐沐 阅读(184) 评论(0) 推荐(0)

list
摘要:this.data.forEach( item =>{ let list = {} list.value=item.id list.label=item.name this.scityNameList.push(list) }) this.$set(this.data,”key”,value’) t 阅读全文

posted @ 2018-12-27 14:05 博客海沐沐 阅读(133) 评论(0) 推荐(0)

记录一种前端导出csv或excel
摘要://导出 downloadOut:function(e){ var wb = XLSX.utils.table_to_book(document.getElementById('tableId')); var wbout = XLSX.write(wb, { bookType: 'csv', typ 阅读全文

posted @ 2018-12-27 09:35 博客海沐沐 阅读(171) 评论(0) 推荐(0)

记录一下ajax往bootstrapTable里面load数据
摘要:var loadTabless = function() { var url = "http://127.0.0.1:8080/ctginms-antiddos/api/adsalert/findAdsalertByTimeCustomernames"//接口 var data = {//参数 st 阅读全文

posted @ 2018-12-26 17:24 博客海沐沐 阅读(546) 评论(0) 推荐(0)

if判断某个字符串中包含某个字符
摘要:str="qweee";//判断str是否包含wif(str.indexOf("w")){ System.out.println("......");} 阅读全文

posted @ 2018-12-11 17:45 博客海沐沐 阅读(5031) 评论(0) 推荐(0)

导航