自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

转载 Aspose.Words For Java破解

1.项目中引入依赖<dependency> <groupId>org.javassist</groupId> <artifactId>javassist</artifactId> <version>3.27.0-GA</version></dependency>2.修改指定类中的返回值public static void main(String[] args) throw.

2021-04-22 14:27:34 6051 11

原创 Java aspose.words转图片,追加内容

Aspose.words版本19.5public static InputStream appendRedContent(String title,String no,InputStream inputStream) throws Exception { // 验证License if (!getLicense()) { return null; }//读文件 Document doc = new Document(new File("文件路径")); Document.

2020-12-11 17:07:47 535 1

原创 引入tx-lcn依赖后,sql报错

集成tx-lcn时,引入了txlcn-tc的包,然后之前可以正常执行的sql报错,排查发现是jsqlparser包和mybatis中的jsqlparser冲突,在引入依赖时排除掉txlcn-tc中的jsqlparser,排除后引入的依赖如下:<dependency> <groupId>com.codingapi.txlcn</groupId> <artifactId>txlcn-tc</artifactId> <.

2020-11-25 10:21:59 325

原创 linux安装mysql5.7

1.wget http://repo.mysql.com/mysql57-community-release-el7-8.noarch.rpm2.yum -y localinstall mysql57-community-release-el7-8.noarch.rpm3.yum -y install mysql-community-server4.systemctl start mysqld //启动mysql5.cat /var/log/mysqld.log | grep passwor

2020-11-11 16:59:04 153

原创 beetl输出特殊字符

${print("@")} 其中"@"为特殊字符

2020-11-09 20:54:14 689

原创 org.apache.rocketmq.client.exception.MQClientException: No route info of this topic

DefaultMQProducer producer= new DefaultMQProducer(producerGroup);//设置namesrv地址namesrv地址不可以加http:////producer.setNamesrvAddr("http://127.0.0.1:9876");改为producer.setNamesrvAddr("127.0.0.1:9876");producer.setVipChannelEnabled(false);//关闭vip通道//启动生...

2020-07-15 09:26:46 324

原创 org.apache.rocketmq.remoting.exception.RemotingConnectException: connect to <ip:10909> failed

Rocket默认开启了VIP通道,VIP通道端口为10911-2=10909。若Rocket服务器未启动端口10909,则报connect to <:10909> failedDefaultMQProducer producer= new DefaultMQProducer(producerGroup);//设置namesrv地址producer.setNamesrvAddr(ConstantsContext.getConstant("ROCKET_MQ_NAME_SERVER")...

2020-07-15 09:22:52 7483 3

原创 minio分布式部署404错误

nohup /opt/minio/minio server --config-dir /etc/minio http://ip/minio/data http://ip/minio/data1 http://ip/minio/data2 http://ip/minio/data3 &如果ip为外网地址就报 404 page not found改成内网之后就正常了~我是在一个机器上部署的 把ip改成了127.0.0.1 就正常了还请大佬指点....

2020-05-26 10:44:34 1161 4

原创 minio not a regular file

源文件夹权限不够,修改文件夹权限在Mac中放在Public文件夹中使用chmod 777 命令 也不行,不知道为啥换到Shared文件中权限就够了

2020-05-21 14:45:54 2970

原创 jenkins发布jar包 Exec command命令

#!/bin/bash PID=`lsof -i:8081| grep LISTEN |awk '{print $2}'` //获取端口号8081的线程pidecho ${PID}export BUILD_ID=dontKillMeif [[ $PID -ge 0 ]];then kill -9 $PIDfi//执行启动nohup /usr/local/java/jdk...

2020-04-26 17:02:05 5769 5

转载 CentOS8安装Docker

文章转自https://blog.csdn.net/qq_36643282/article/details/1051907591.yum install https://download.docker.com/linux/fedora/30/x86_64/stable/Packages/containerd.io-1.2.6-3.3.fc30.x86_64.rpm2.yu...

2020-04-24 11:59:06 124

原创 sqlserver语句还原数据库

use mastergo---声明变量declare @dbName nvarchar(max)='数据库名';declare @dbFullName nvarchar(max)='d:\路径.bak';--1.1修改为单用模式 exec(N'ALTER DATABASE '+@dbName+' SET SINGLE_USER WITH ROLLBACK IMMEDIATE');...

2020-04-10 16:18:23 833

原创 SQL Server 按时间间隔提取数据

select a.* from table a where collectionTime between cast('2019-10-03 00:00:00' as datetime) and cast('2020-03-13 13:55:00' as datetime)and datediff(minute,'2019-10-03 00:00:00',a.collectionTi...

2020-03-19 15:29:16 2717

转载 Error: EACCES: permission denied, mkdir '......node-sass/build'错误解决方案

安装node-sass时出现一下错误:gypERR!configure errorgypERR!stackError: EACCES: permission denied, mkdir '/Users/zhang/Documents/data_insight_yinzhou/data_insight_yinzhou/node_modules/node-sass/build'...

2020-03-18 14:42:59 3681

转载 Could not find artifact xxxxxxxxxx in nexus

转自:https://blog.csdn.net/csfreebird/article/details/7945466

2020-03-11 16:56:32 4474

原创 Got permission denied while trying to connect to the Docker daemon socket at

Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post http://%2Fvar%2Frun%2Fdocker.sock/v1.40/auth: dial unix /var/run/docker.sock: connect: p...

2020-03-10 16:39:07 116

原创 jenkins构建时错误 Failed to create parent directories for tracking file

使用jenkins构建时提示如下错误,原因是maven仓库的权限不够,解决办法增加文件夹权限:chmod 777 maven仓库路径如:chmod 777/usr/local/mavenRepository/

2020-03-10 16:34:22 5514 1

原创 u盘安装centos7出现dracut

当出现上图的界面时,按顺序执行以下步骤:1. cd dev2. ls3. 拔掉U盘4. ls 消失的那个就是U盘的盘符(很多时候都是定位不到盘符..)5. reboot6. 安装界面按E vmlinuz initrd=initrd.img inst.stage2=hd:LABEL=CentOS\x207\x20x86_64.check quiet 改为 ...

2020-03-05 16:50:09 327

原创 Docker挂载/etc/timezone报错

执行这段命令docker run -d --name sys-app -v /etc/timezone:/etc/timezone -v /etc/localtime:/etc/localtime -p 8001:8001 --restart=always --net=host sys-app:latest报如下错docker: Error response fr...

2020-03-03 14:59:31 8939 1

原创 docker-compose:找不到命令

参考https://ubuntuqa.com/article/6414.html安装docker-compose1.wget https://github.com/docker/compose/releases/download/1.23.0-rc3/docker-compose-Linux-x86_642.mv docker-compose-Linux-x86_64 /usr/lo...

2020-02-24 10:31:44 5822 1

原创 Docker安装nexus错误 /nexus-data/log/karaf.log (No such file or directory)

启动nexus时,一直启动不了,通过docker logs 容器名称或容器id查看日志发现如下错误,docker logs nexusCaused by: java.io.FileNotFoundException: /nexus-data/log/karaf.log (No such file or directory) at java.io.FileOutputS...

2020-01-14 13:52:21 2295

原创 linux开放端口

查询端口是否开放: firewall-cmd --query-port=端口号/tcp添加指定需要开放的端口: firewall-cmd --add-port=端口号/tcp --permanent重载入添加的端口: firewall-cmd --reload查询指定端口是否开启成功: firewall-cmd --query-port=端口号/tcp移除指定端口: fir...

2020-01-13 08:56:17 226

原创 docker-compose安装

1.wgethttps://github.com/docker/compose/releases/download/1.23.0-rc3/docker-compose-Linux-x86_642.mvdocker-compose-Linux-x86_64/usr/local/bin/docker-compose3.chmod+x/usr/local/bin/docker-compos...

2020-01-10 11:24:19 120

转载 springboot taskExecutor taskScheduler 冲突解决

***************************APPLICATION FAILED TO START***************************Description:Field xxAuthenticationSuccessHandlerAppSocial in com.xx.xx.security.social.core.impl.AppSocialAuthen...

2019-10-11 11:04:23 4551

转载 Atomikos+SQLServer分布式数据源 xa not support dbType :sqlserver

参考:https://www.cnblogs.com/idelo/p/9466345.html https://www.jianshu.com/p/2de5ceec6c9a1.如果驱动使用的是sqljdbc4,建议换成mssql-jdbc,根据jdk选择对应的版本.2.如果碰到"xa not support dbType :sqlserver"这个异常,解决...

2019-09-11 16:40:35 2731 1

原创 getOutputStream() has already been called for this response

实现一个图片显示的功能是遇到的一个错误,虽然不影响显示,但是还是担心.错误如下图.java.lang.IllegalStateException: getOutputStream() has already been called for this response at org.apache.catalina.connector.Response.getWriter(Respons...

2019-06-27 17:56:32 369

原创 jenkins构建 Could not initialize class sun.nio.fs.LinuxNativeDispatcher

重启jenkins之后就好了....有知道具体原因的可以分享下

2019-05-09 16:48:12 3201 3

转载 Linux添加防火墙、iptables的安装和配置(转)

转自:https://www.cnblogs.com/lemon-flm/p/7608029.htmiptables基础 规则(rules)其实就是网络管理员预定义的条件,规则一般的定义为“如果数据包头符合这样的条件,就这样处理这个数据包”。规则存储在内核空间的信息 包过滤表中,这些规则分别指定了源地址、目的地址、传输协议(如TCP、UDP、ICMP)和服务类型(...

2019-05-07 09:49:47 149

原创 docker-compose错误cant find a suitable configuration....

kafka和zookeeper安装步骤1.mkdir -p /srv/kafka2. vim /srv/kafka/docker-compose.yml docker-compose.yml内容如下 version: '2' services: zookeeper: image: wurstmeister/zookeeper ...

2019-04-29 15:59:45 30539

转载 centos7中没有service iptables save指令来保存防火墙规则

转自:https://blog.51cto.com/12529218/2170999一.任意运行一条iptables防火墙规则配置命令: iptables -P OUTPUT ACCEPT二.对iptables服务进行保存: service iptables save如果上述命令执行失败报出:The service command supports only ba...

2019-04-23 19:00:32 4079

转载 Error response from daemon: Cannot start container.......iptables failed: iptables --wait -t nat -A

转自https://www.cnblogs.com/amoyzhu/p/9329368.html# docker启动报错 docker: Error response from daemon: driver failed programming external connectivity on endpoint happy_perlman (49dc6ee6eba3119650791b...

2019-04-23 18:55:01 1991

转载 CentOS7 firewalld常用命令

转自:https://www.cnblogs.com/moxiaoan/p/5683743.html1、firewalld的基本使用启动: systemctl start firewalld关闭: systemctl stop firewalld查看状态: systemctl status firewalld开机禁用 : systemctl disable firewall...

2019-04-16 19:03:13 117

转载 Row size too large (> 8126).,执行sql语句时 报错

[Err] 1118 - Row size too large (&gt; 8126). Changing some columns to TEXT or BLOB may help. In current row format, BLOB prefix of 0 bytes is stored inline.将语句中Engine=Innodb 修改为 Engine=MyISAM ...

2019-01-24 08:57:11 1169

原创 jenkins tomcat部署404错误

1.在tomcat的bin目录下,按住shift然后右键,点击如图所示"在此处打开命令窗口",然后输入version.bat,然后回车,会显示找到JVM Version可以查看使用的JDK版本,此文件在bin目录下可以找到2.如果JDK不是想要的版本,找到setclasspath.bat,右键打开,找到 set "JRE_HOME=%JAVA_HOME%" , 把%JAVA_HOME%替换成本...

2018-12-05 14:57:05 2380

转载 Java HttpClient请求 peer not authenticated异常

原文:https://blog.csdn.net/itjavaer/article/details/41250245HttpClient httpClient=new DefaultHttpClient();  httpClient = HttpsClient.getNewHttpsClient(httpClient);//直接调用即可 import java.security.c...

2018-11-16 14:06:28 1678

原创 [ERROR] Please refer to XXXXXXXXXXX for the individual test result

在pom.xml中增加&lt;build&gt; &lt;plugins&gt; &lt;plugin&gt; &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt; &lt;artifactId&gt;maven-surefire-plugin&lt;/artif...

2018-09-25 14:22:53 15175 3

转载 The type org.springframework.context.ConfigurableApplicationContext cannot be resolved

参考文章 https://blog.csdn.net/q286035062/article/details/78473559  maven项目在写junit测试类时,加上@ContextConfiguration注解就在包名那报错错误大约是这个样子The type org.springframework.context.ConfigurableApplicationContex...

2018-09-20 10:19:41 246

转载 dubbo出现com.alibaba.dubbo.remoting.TimeoutException解决办法

转自https://blog.csdn.net/wb01234567890456/article/details/78724877  感谢大神.虽然这是很低级的错误........但是........ 唉 网上说了很多关于此异常的处理办法,比如 1 实现序列化 2 dubbo连接时间调整 等等 我遇到的都不是这些问题。产生这种情况的原因还有其他2种,目前我只遇到过这2种。1 数据...

2018-09-04 10:26:54 3294 2

原创 session.SPRING_SECURITY_LAST_EXCEPTION.message为空错误

&lt;span th:if="${param.error}" th:text="${session?.SPRING_SECURITY_LAST_EXCEPTION?.message}" class="help-block" style="color:red;"&gt;&lt;/span&gt;session?.SPRING_SECURITY_LAST_EXCEPTION?.message

2018-07-18 14:56:55 4447 1

转载 【spring boot】2.0 配置@cacheable 自定义序列化方式 缓存数据到redis

转自 https://blog.csdn.net/b376924098/article/details/79820642一·背景描述  spring 的  @cacheable 已成为我们比较常用的缓存数据的方式,但是把非String对象缓存到redis后在使用RedisDesktopManager等软件查看缓存的数据的时候 展示的是HEX 数据,观察起来比较不方便,所以我们这里自定义了FastJ...

2018-07-11 21:12:07 2052

空空如也

空空如也

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

TA关注的人

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