自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(85)
  • 资源 (4)
  • 收藏
  • 关注

原创 Oracle数据库ORA-01555解决含clob和blob字段表报错快照过旧问题

执行检查,并将检查出blob字段存在问题的数据的rowid放到临时表中。OFFICE_WORKFLOWDOCUMENT是需要检查的表名,DOCUMENTCONTENT是blob字段名,其中RISENET_NEW是数据库用户名,该表有多个blob字段需逐一检查。三、删除原表有问题的数据。

2023-03-17 16:20:33 589

原创 Java之Excel导出工具类使用教程

java 导出excel

2022-10-24 11:24:33 4608 1

原创 WORD转html带base64图片,解决转换后乱码问题

package jxfgw.util;import org.apache.poi.hwpf.HWPFDocumentCore;import org.apache.poi.hwpf.converter.WordToHtmlConverter;import org.apache.poi.hwpf.converter.WordToHtmlUtils;import org.apache.poi.hwpf.usermodel.Picture;import org.w3c.dom.Document;imp.

2021-11-05 15:55:16 748

原创 java后台通过http请求下载文件

public void downLoad(HttpServletResponse response,String HTTP_URL, String filename) { BufferedInputStream bis = null; BufferedOutputStream bos = null; try { URL url = new URL(HTTP_URL); HttpURLConnecti.

2021-06-17 10:56:25 4914

原创 把所有在AWS S3设置公开访问

编辑存储桶策略{ "Version": "2012-10-17", "Id": "S3PolicyId1", "Statement": [ { "Sid": "statement1", "Effect": "Allow", "Principal": { "AWS": "*" }, "Action": "s3:Ge..

2021-02-02 11:52:39 3172 2

原创 odoo14配置阿里云免费SSL证书

登入阿里云SSL证书管理,点击购买免费版证书配置好域名后下载nginx证书有了证书之后,第一步上传证书到服务器,配置nginx,我这配置了两个域名对应odoo两个新建的网站域名vi /etc/nginx/conf.d/域名.conf#odoo serverupstream odoo { server 127.0.0.1:8069;}upstream odoochat { server 127.0.0.1:8072;}# http -> httpsserver { l.

2021-01-08 10:15:52 1038

原创 centos8安装odoo14

sudo dnf update -y # 升级系统安装包# 安装所需依赖sudo dnf install python3 python3-devel git gcc redhat-rpm-config libxslt-devel bzip2-devel openldap-devel libjpeg-devel freetype-devel curl unzip -y# 安装wkhtmltopdfsudo dnf install https://github.com/wkhtmltopdf/wkht.

2020-12-29 10:04:03 1565

原创 无法从 static 上下文引用非 static 字段

错误:无法从 static 上下文引用非 static 字段 ‘tagLocatorMapper’解决方式:@Componentpublic class StaticTagLocatorMapper { @Autowired private TagLocatorMapper tagLocatorMapper; public static TagLocatorMapper staticTagLocatorMapper; // 项目启动时把TagLocatorMapp

2020-12-14 15:02:53 3580

原创 Netty发送JSON格式字符串数据

String json = JSON.toJSONString(aoaResult); //转成btye数组 utf-8模式 byte[] bytes = json.getBytes(StandardCharsets.UTF_8); ctx.writeAndFlush(bytes);

2020-12-08 15:23:01 1533

原创 java往文件中写入内容

public static void main(String[] args) { // TODO 自动生成的方法存根 String filename="c:/test.log"; try { FileOutputStream out =new FileOutputStream(filename,true); String str ="\r\n用新的构造方法追加内容"; out.writ..

2020-11-11 10:58:13 588

原创 SpringBoot项目部署到windows服务器

使用winsw,winsw是一个开源项目,程序以及源码可以在Git Hub下载:https://github.com/kohsuke/winsw/releases将Git Hub中下载的WinSW.NET4.exe和sample-minimal.xml文件及springboot项目的jar包放在同一个文件夹中。WinSW.NET4.exe和sample-minimal.xml文件名都改成springboot jar包的文件名例如xxxtest.jar编辑xml文件,内容如下<serv

2020-11-02 17:51:19 2420

原创 thingsboard License许可证的一系列错误解决方式

License Error: INSTANCE_NOT_FOUND(105) - Instance not found!或者org.thingsboard.license.shared.exception.LicenseException: Active instances capacity exceeded!大多都可以通过这种方式解决:第一种方式:只需要在许可证门户上停用实例,然后使用此密钥再次启动ThingsBoard(请不要删除实例,或者仅停用当前实例即可获得许可证)。...

2020-10-28 11:45:30 1016

原创 cassandra启动报错:Exiting due to error while processing commit log during initialization.

ERROR 07:18:45 Exiting due to error while processing commit log during initialization.org.apache.cassandra.db.commitlog.CommitLogReplayer$CommitLogReplayException: Could not read commit log descriptor in file /var/lib/cassandra/commitlog/CommitLog-6-16026

2020-10-14 15:32:17 823

原创 解决HTTPClient长连接 60s会自动断开问题,springboot restful接口

配置一下springboot内置tomcat的KeepAliveTimeout属性即可package com.pxwl.devicetxtlog.config;import org.apache.catalina.connector.Connector;import org.apache.coyote.http11.Http11NioProtocol;import org.springframework.boot.web.embedded.tomcat.TomcatConnectorCust.

2020-10-10 15:05:01 3383

原创 免费内网穿透工具

http://www.ngrok.cc/user.html

2020-07-07 10:23:13 539

原创 nginx文件服务器设置

1.在http模块下添加 autoindex on;# 显示目录 autoindex_exact_size on;# 显示文件大小 autoindex_localtime on;# 显示文件时间2. 设置server端口及文件目录路径server { listen 8180; #监听端口 server_name localhost; root /shared_file; #

2020-06-03 18:16:50 337

原创 springboot整合mqtt发送与订阅

pom文件<dependency> <groupId>org.springframework.integration</groupId> <artifactId>spring-integration-stream</artifactId></dependency><dependency>...

2020-04-27 13:46:45 3861 4

原创 使用阿里云函数作为微信授权后台接口

创建HTTP触发器函数,选择node.jsvar getRawBody = require('raw-body');var getFormBody = require('body/form');var http = require('https');var querystring = require('querystring');var body = require('body...

2020-04-02 10:58:58 421

原创 thingsboard邮箱自动激活功能

thingsboard激活主要是靠user_credentials表中“enabled ”字段和“activate_token”字段,所以说我们在数据插入的时候更新一下这个字段就可以实现自动激活功能了第一步:创建函数user_credentials_insert_trigger_fun()CREATE OR REPLACE FUNCTION user_credentials_inse...

2020-03-30 11:37:41 465

原创 nginx ssl域名配置

http请求自动转发server { listen 80; #监听端口 server_name a.domain.com b.domain.com c.domain.com; #请求域名 return 301 https://$host$request_uri; #重定向至https访问。 }SSL配置(同时web...

2020-03-22 13:25:47 507

原创 Nginx 的 SSL 模块安装

Nginx 的 SSL 模块安装步骤一:我们先来到当初下载nginx的包压缩的解压目录.cd /usr/local/nginx-1.17.9步骤二:运行nginx -V命令查看已经安装的nginx模块(configure arguments:后面表示当前已经安装的nginx模块,看是否有ssl模块,有的话就不需要装了,--with-http_ssl_module)如:[root...

2020-03-22 13:18:23 2545

原创 thingsboard仿官方demo在仪表板中显示资产关联设备的所有警报 

官方demo地址:https://thingsboard.io/smart-metering/在仪表板中显示资产关联设备的所有警报1.我将提供两个连接到资产的设备的示例,以便您可以参考。首先,数据流经过“更改发起者”节点,并将发起者更改为其连接的资产。然后,“创建警报”节点将遥测对象转换为易于在仪表板“警报小部件”上显示的字符串,并将“警报类型”设置为设备名称,以便它不...

2020-03-17 10:15:52 1775

原创 nginx转发端口时与导致websocket不生效

在nginx中将80端口转发到本地服务8080端口,但是导致服务中的websocket发生错误配置转发规则: server { listen 80; server_name #服务器域名; #charset koi8-r; #access_log logs/host.access.log main...

2020-03-11 10:24:10 1467 1

原创 centos8安装mysql8和redis5和nginx

一、安装msyql 8yum install -y mysql-servermysql启动systemctl start mysqld.servicesystemctl enable mysqld.servicefirewall-cmd --add-port=3306/tcp --permanentfirewall-cmd --reload登入mysql,没有密码回车...

2020-03-07 20:23:02 353

原创 thingsborad统计设备总数以及资产关联的设备数量

您需要在规则链中使用“最新聚合”节点,并将其与“复制到组”节点绑定,以便能够在仪表板上显示此数据。定制时需要特别注意的事项用箭头标记。如果要在仪表板上显示此信息,请创建类似于以下内容的别名:然后,我使用了小部件“简单卡”并向其中添加了参数。...

2020-03-06 12:32:29 1025 1

原创 eclipse没有server选项,没有maven

1.找到Help->Install New SoftwarePhoton -http://download.eclipse.org/releases/photon其中,photon为eclipse的版本号勾选Web,XML,Java EE and OSGi Enterprise Development ->JST ServerAdaptersExtensions(打勾选上该项...

2020-03-05 11:19:49 261

原创 百度地图自定义信息窗口

<!DOCTYPE html><html><head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="viewport" content="initial-scale=1.0, user-scalable=no" /&...

2020-01-16 15:56:57 4489 5

原创 aws-iot研究

创建 Amazon DynamoDB 规则https://docs.aws.amazon.com/zh_cn/iot/latest/developerguide/iot-ddb-rule.html

2019-12-06 17:44:11 191

原创 docker安装

1.第一步如果系统内有老版本的docker,我们需要先删除之前的docker以及相关依赖。sudo yum remove docker \ docker-client \ docker-client-latest \ docker-common \ ...

2019-11-26 09:32:25 59

原创 js倒计时插件TimeTo

demo :http://lexxus.github.io/jq-timeTo/

2019-09-19 16:12:27 496

原创 CentOs7关闭防火墙的命令

下面是red hat/CentOs7关闭防火墙的命令!1:查看防火状态systemctl status firewalldservice iptables status2:暂时关闭防火墙systemctl stop firewalldservice iptables stop3:永久关闭防火墙systemctl disable firewalldchkco...

2019-09-18 11:03:21 273

原创 linux上安装mysql glibc版本安装

1、下载tar包,这里使用wget从官网下载wget https://dev.mysql.com/get/Downloads/MySQL-5.7/mysql-5.7.22-linux-glibc2.12-x86_64.tar.gz2、将mysql安装到/usr/local/mysql下# 解压tar -xvf mysql-5.7.22-linux-glibc2.12-x86...

2019-09-18 10:57:52 601

原创 国内镜像网站

JDK下载 华为的:https://repo.huaweicloud.com/java/jdk/ 搜狐开源镜像站:http://mirrors.sohu.com 网易开源镜像站:http://mirrors.163.com/ 阿里云开源镜像站:http://mirrors.aliyun.com 清华大学镜像站:http://mirrors.ustc.edu.cn/ 中...

2019-09-18 09:00:00 3901

原创 js倒计时定时任务

教程载入中,请稍等<span id="numDiv">10</span>秒……<script type="text/javascript">varnum=10;varinterval=setInterval(function(){if(num==0){clearInterval(interval);}numDiv.innerHTML=num--...

2019-09-02 16:16:29 304

原创 在页面局部div设置滚动条

.conten-over{ overflow: hidden; overflow-y: scroll; white-space: nowrap; height:100%; width:100%; }.conten-over::-webkit-scrollbar { width: 0; }<div class="conten-over"&g...

2019-09-02 10:58:39 2199 2

原创 fastjson使用教程

测试类:package jsonTest;import java.util.ArrayList;import java.util.HashMap;import java.util.List;import java.util.Map;import com.alibaba.fastjson.JSON;import com.alibaba.fastjson.JSONArray;im...

2019-06-24 10:33:49 356

原创 java调用C/C++方法 JNA

jnaerator-0.12-shaded工具的使用1.在当前目录下运行jnaerator-0.12-shaded.jar,需要java环境,可以直接双击运行,如果双击运行不成功则使用命令:java -jar .\jnaerator-0.12-shaded.jar2.运行之后进入启动页面3.操作完之后会在右侧生成java代码,简单的案例可以直接将代码复制出来使用,遇到一些比较复...

2019-04-28 15:06:01 1790

原创 synchronized和ReentrantLock的区别

synchronized和ReentrantLock的区别ReentrantLock (再入锁)位于java.util.concurrent.locks包和CountDownLatch, FutureTask, Semaphore一样基于AQS实理能够实现比synchronized更细粒度的控制,如控制fairness调用lock()之后,必须调用unlock释放锁性能未必...

2019-04-04 13:15:47 137

原创 centos7单机上搭建mysql5.7一主多从模式

基本环境:centos7 x64mysql 5.7.20(压缩版)下载mysql 5.7.20(去官网下载了传到linux或直接wget)wget https://dev.mysql.com/get/Downloads/MySQL-5.7/mysql-5.7.20-linux-glibc2.12-x86_64.tar.gz添加用户组mysql:groupaddmysq...

2019-04-02 17:38:24 210

原创 使用 SpringBoot+Dubbo 搭建一个简单分布式服务

使用 SpringBoot+Dubbo 搭建一个简单分布式服务实战之前,先来看几个重要的概念开始实战之前,我们先来简单的了解一下这样几个概念:Dubbo、RPC、分布式、由于本文的目的是带大家使用SpringBoot+Dubbo 搭建一个简单的分布式服务,所以这些概念我只会简单给大家普及一下,不会做深入探究。什么是分布式?分布式或者说 SOA 分布式重要的就是面向服务,说简单的分布...

2019-03-25 21:49:11 202

springboot 架包运行脚本

springboot jar包启动脚本,启动:./lpwa./sh start 停止:./lpwa./sh stop 重启:./lpwa./sh restart

2020-12-30

wkhtmltox-0.12.5-1.centos8.x86_64.rpm

wkhtmltox-0.12.5-1.centos8.x86_64.rpm

2020-12-23

devicecount.json

thingsboard统计设备数量及某个资产下关联设备数量,thingsboard为PE版本,该文件为规则json文件

2020-03-06

jna java代码生成工具

jna java代码生成工具,详细请看博客 https://blog.csdn.net/qq_31275085/article/details/89638168

2019-04-28

空空如也

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

TA关注的人

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