自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(58)
  • 收藏
  • 关注

原创 使用个人p12证书请求https接口数据

【代码】使用个人p12证书请求https接口数据。

2024-07-13 15:49:26 466

原创 java生成随机密码

【代码】java生成随机密码。

2023-06-18 10:28:43 489

原创 apache james内网邮件服务器搭建

Apache James默认使用DERBY数据库来存储邮件数据,我们需要将其默认数据库链接注释,并添加新的MySQL配置;参考:https://www.cnblogs.com/eagle6688/p/17093139.html。下载地址:https://dlcdn.apache.org/james/server/下载:james-server-app-3.6.2-app.zip。需要将配置中的defaultDomain改为自己的域名。可Thunderbird或者foxmail进行验证。

2023-06-17 15:53:09 1303

原创 neo4j修改用户密码

neo4j修改用户密码的两种方式

2023-01-09 09:11:35 5094

原创 apache calcite中关于model文件配置

apache calcite中关于model文件配置

2022-07-30 22:36:56 343

原创 springboot mongodb 多数据源

springboot mongodb 多数据源

2022-07-26 22:14:01 1709 3

原创 linux安装mongo

linux安装mongo

2022-07-24 21:29:16 1056

原创 记一次atlas启动后访问页面报503错误的问题

application.log中的异常日志2022-04-18 15:53:42,224 WARN - [main:] ~ Failed to obtain graph instance on attempt 1 of 3 (AtlasGraphProvider:104)java.lang.IllegalArgumentException: Could not instantiate implementation: org.janusgraph.diskstorage.es.ElasticSearchI

2022-04-18 19:39:24 1590

转载 Java位运算

Java提供的位运算符有:左移( << )、右移( >> ) 、无符号右移( >>> ) 、位与( & ) 、位或( | )、位非( ~ )、位异或( ^ ),除了位非( ~ )是一元操作符外,其它的都是二元操作符。1、左移( << ) 将5左移2位:public class Demo { public static void main(String[] arg

2021-08-01 23:58:13 403

转载 mapstruct高级使用方法

原文地址:https://mp.weixin.qq.com/s?__biz=MzU1OTYzOTU0Mg==&tempkey=MTExOV9rNjJTL0lBemhXNFpCUkJLVUxJUnE3dzJia1dscHExUThjOUxfbFE0eFVxRlAwN2x0QWVDRkUyUmM5RnMzQ0VlWGFUVnZvSkNjTjB2eUdnNXJpS294TVhBRGl2ZHB3REVkclR1VHZ0VFR5NENHQWoxcmJMUmJ3dnRVU2ZwOTFCZGJuT0tzc0x6d

2021-06-29 23:43:21 4226

转载 高负载问题定位实践

相信很多人曾经都遇到过这样的问题,就是线上部署的程序运行得好好的,突然某一天就收到一条报警说程序的负载很高,为了不影响线上业务,此时一般首先想到的处理方式可能是叫运维重启服务。之后就不知道该怎么去排查原因了。下面通过具体的案例来排查一个负载高的问题出现在哪1.找到负载高的进程top -c查看当前服务器各个进程运行占用CPU,内存等情况。从上图可以发现PID为117956进程占用CPU过高2.根据找到的负载高的进程ID找到导致负载高的线程IDtop -Hp 117956..

2021-06-27 09:37:48 176

原创 quartz提示This scheduler instance is still active but was recovered by another instance in the cluster

报错信息WARN org.quartz.impl.jdbcjobstore.JobStoreSupport.findFailedInstances(JobStoreSupport.java:3396) This scheduler instance (XXX) is still active but was recovered by another instance in the cluster. This may cause inconsistent behavior.产生原因:quartz使用

2021-06-22 11:49:45 4016

原创 关于lombok和mapstruct整合报无参构造函数错误

调整lombok的版本,lombok使用1.16.10版本时可能会报无参构造函数的错误,将lombok的版本改为1.16.20

2021-04-12 09:21:12 550

原创 关于spark任务的问题

关于spark任务在将执行的结果数据对表进行overwrite操作时,会报/tmp/staging/.hive-staging/*******文件存在的错误,同时对应表的hdfs路径下产生了一个__HIVE_DEFAULT_PARTITION__的分区目录文件错误原因:对应表的分区字段存在值为空字符串的数据解决办法:在首次将数据写入表时对分区字段值为空字符串的数据进行过滤掉...

2020-11-10 17:10:28 353

原创 spark读取csv,并将第一行设置为字段名称

object CSVReader { def main(args: Array[String]): Unit = { val spark = SparkSession.builder() .appName("spark-test") .master("local[*]") .getOrCreate() val result = spark.read .option("delimiter", "|") .option(".

2020-11-07 16:52:20 3202

原创 本地sparksql调试遇到的一些问题

本地sparksql调试遇到的一些问题 1.报错:Hive support is required to CREATE Hive TABLE (AS SELECT) 解决办法:在spark中添加.enableHiveSupport() 2.创建hive表时报错:Unable to instantiate SparkSession with Hive support because Hive classes a 解决方法:需要引入spark-hive依赖 3...

2020-08-20 11:29:30 557

原创 关于mapstruct的qualifiedByName和expression的使用(解决List类型映射成String的情况)

@Mapperpublic interface CarMapper { CarMapper INSTANCE = Mappers.getMapper(CarMapper.class); /** * 映射 * @param car * @return */ @Mappings({ @Mapping(target = "buyTime", source = "buyTime", dateFormat = "yyyy-.

2020-08-01 10:39:53 9251

原创 使用mybatis过程中遇到的问题

mysql驱动类为com.mysql.cj.jdbc.Driver1.Error querying database. Cause: java.sql.SQLException: The server time zone value 'Öйú±ê׼ʱ¼ä' is unrecognized or represents more than one time zone. You must configure either the server or JDBC driver (via the 'serv.

2020-06-26 16:42:26 326

原创 java各类集合数据结构(1.8)

1.ArrayList 数组 transient Object[] elementData; private static final int DEFAULT_CAPACITY = 10;2.LinkedList 双向循环列表 transient Node<E> first; transient Node<E> last; private static class Node<E> { E...

2020-06-14 14:31:44 212

原创 关于js中使用"window.open"打开新页面会刷新原来的页面的问题

第一种方法:之所以会出现刷新页面的问题是因为使用的是<button>标签,把button标签改为<inputtype=buttonvalue='确定'>第二种方法:在window.open()后面加上返回值returnfalse;以上两种方法亲测有效...

2020-03-16 09:35:14 4836 2

原创 表达式求值常用语言

1.aviator2.groovy3.archive4.jexl3

2020-01-04 15:54:26 126

原创 关于springboot项目报current request is not type的错误

springboot项目启动之后,发送请求时报current request is not type[org.apache.catalina.servlet4preview.http.HttpServletRequest]的错误,可能controller引入的httpservletreques有问题,可能引入的是org.apache.catalina.servlet4preview.http.Ht...

2018-09-25 18:42:35 7998 1

原创 java写九九乘法表

public class Test { public static void main(String[] args) { final int MAX_NUM = 9; int a, b; final String NEW_LINE = "\r\n"; final String TAB = "\t"; for ...

2018-07-10 15:03:14 286

原创 富文本插件tinymce,兼容vue

https://www.tinymce.com/docs/

2018-06-26 20:43:20 2425

转载 js如何只对引号外的逗号进行分割

s.split(/,(?=(?:[^']*(?:'[^']*')?[^']*)*$)/)

2017-12-18 16:27:09 2153 1

原创 前端读取csv文件内容

var data = [];var files = document.getElementById("index-info-file").files;var reg = new RegExp(".*,\".*,.*\"$");if(files.length) { var file = files[0]; var reader = new FileReader(); i

2017-12-18 10:26:32 10316

原创 关于发送jsonp请求的问题

$.ajax({url: 'http://localhost:8080/Ahut/demo/getJson.action',         data: { name: "value" },         cache: false,         //async: false,         type: "POST",         dataType: 'jsonp

2017-12-07 14:49:12 716

原创 knowledge

http://element-cn.eleme.io/2.0/#/zh-CN/component/transferhttps://taylorchen709.github.io/vue-admin/#/loginhttp://www.h-ui.net/Hui-4.2-nav.shtmlhttps://github.com/PanJiaChen/vue-element-admin

2017-11-27 15:17:54 260

转载 php使用curl发送post请求

<?php/** * Curl版本 * 使用方法: * $post_string = "app=request&version=beta"; * request_by_curl('http://www.jb51.net/restServer.php', $post_string); */function request_by_curl($remote_server, $post_st

2017-11-24 16:57:22 392

原创 linux更改文件所有者

// 将目录project文件夹及子目录的所有者和组更改为用户test和组testchown –R test:test project

2017-11-21 21:19:36 553

转载 解决select2在bootstrap模态框中下拉框隐藏的问题

修改select2-container--open类.select2-container--open { z-index: 9999999 !important;} 

2017-11-10 16:25:16 4923

原创 java发送post请求

private String sendPost(String param) { Request request = Request.Post(api).bodyString(param, ContentType.APPLICATION_FORM_URLENCODED.withCharset(Consts.UTF_8)); try { retu

2017-09-21 20:34:00 390

转载 linux

http://www.cnblogs.com/webcc/archive/2012/08/01/2651128.html

2017-09-20 11:02:45 202

原创 使用js实现读取csv文件内容解析到html页面中

上传 $("#test-table").bootstrapTable(testFunc()); function testFunc(value) { var test = { toolbar: '#btn-action', //工具按钮用哪个容器 striped: true, //设置为 true 会有隔行变色效果

2017-08-31 21:51:50 24044 2

原创 关于jstree自定义右键菜单的使用

$.jstree.defaults.core.themes.variant = "large"; $.jstree.defaults.core.themes.dots = false, // $.jstree.defaults.core.themes.icons = false, $.jstree.defaults.core.dblclick_toggle = false,

2017-08-10 22:33:49 1896

原创 关于select2动态设置默认值的问题

$("#ddd").val("four").trigger("change");

2017-08-05 15:10:53 991

原创 知识图谱插件vis.min.js

该插件的官网http://visjs.org/

2017-07-27 17:31:10 2993

转载 关于bootstrap的向导式插件bootstrap-wizard的使用

该插件的帮助文档和简单的demohttp://vadimg.com/twitter-bootstrap-wizard-example/#

2017-07-27 17:10:49 5288

转载 jquery多个标签绑定同一个事件

$("#div1,#divN,xxxxxxx").click(function(){ });

2017-07-13 15:38:57 4921

转载 使用SVG绘制带箭头的线

http://blog.csdn.net/zghnpdswyp/article/details/52981116

2017-07-12 20:00:18 2113

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除