自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 idea中.proto文件生成model类和service类

idea中.proto文件生成model类和service类

2022-06-09 21:47:46 948

原创 删除Linux上乱码的文件

1、ls -i命令得到了文件的节点号2、使用find -inum 节点号 -delete,即可删除此文件

2021-08-18 14:51:03 377

转载 mybatis解决in超过1000的问题解决

<if test="newsIds != null and newsIds.size() > 0"> and (id in <trim suffixOverrides=" OR id IN()"> <!-- 表示删除最后一个条件 --> <foreach collection="newsIds" item="id" index="index" open="(

2021-07-22 14:52:51 979

原创 记录maven在deploy时报错Return code is: 401, ReasonPhrase: Unauthorized.

错误信息:Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy (default-deploy) on project baas-news-client: Failed to deploy artifacts: Could not transfer artifact com.shinemo.baas:baas-news-client:jar:1.0.2-20210713.074902-13 from/t

2021-07-13 15:57:24 1145 1

转载 解决mac:已损坏,无法打开,您应该将它移到废纸篓

macOS Catalina下,即便已通过在终端中输入命令 sudo spctl --master-disable 允许APP任意来源,也会出现某些APP安装后,打开时提示:xxx.app已损坏,无法打开,您应该将它移到废纸篓。这时可通过在终端中输入命令 sudo xattr -d com.apple.quarantine /Applications/xxx.app解决,其中xxx.app是出问题的APP名称,如名称中有空格,可用“\”加空格代替。(base) bennyrhysdeMacBook-Pr

2021-04-17 21:35:22 3687 1

原创 window.dialogArguments只兼容ie的问题解决

1、代码前台采用showModalDialog弹出框window.showModalDialog(url,window,"dialogHeight:500px;dialogWidth:326px;dialogTop:200px;dialogLeft:400px;scroll:no;resizable:yes;status:no")获取父页面,向父页面的元素赋值var parentWin = window.dialogArguments;parentWin.document.getElementB

2021-01-19 10:12:43 1714

转载 修改CentOS的yum源为阿里源

1、安装wget命令yum –y install wget2、备份mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup3、下载CentOS 5wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-5.repoCentOS 6wget -O /etc/yum.repos.d/Cent

2020-10-27 13:50:45 73

转载 npm install时报错Failed at the chromedriver@2.37.0 install script ‘node install.js‘

解决办法npm install chromedriver --chromedriver_cdnurl=http://cdn.npm.taobao.org/dist/chromedriver转载于:https://blog.csdn.net/qq_35624642/article/details/79802328

2020-07-06 22:31:46 514 1

原创 docker启动es报错原因

错误ElasticsearchException[failed to bind service]; nested: AccessDeniedException[/usr/share/elasticsearch/data/nodes];Likely root cause: java.nio.file.AccessDeniedException: /usr/share/elasticsearch/data/nodes at java.base/sun.nio.fs.UnixException

2020-07-01 09:41:44 2301

原创 Java中利用freemarker导出word表格并合并单元格

1、word表格的模板另存为xml格式:将保存的xml改成.ftl格式化一下xml,看看文件中的带有是否正确注:有可能出现{}是否正确注:有可能出现是否正确注:有可能出现{标签。。。再},这种情况复制没有这种情况的到这就行了2、Java代码1、需要导入freemarker的包<dependency> <groupId>org.freemarker</groupId> <artifactId>freemarker&lt

2020-06-24 11:43:17 3455 7

原创 记录mysql插入数据库时间和实际时间不一致问题(时区问题)

dataSource.url=jdbc:mysql://localhost:3306/zjstw_cs?characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai修改数据库连接的配置,将serverTimezone=Asia/Shanghai就行

2020-06-23 11:38:11 2793 1

原创 单例模式的几种创建方式

1、饿汉式public class Demo1 { private static Demo1 instance = new Demo1(); private Demo1(){ } public static Demo1 newInstance(){ return instance; } public static void main(String[] args) { Demo1 demo1 = Demo1.newInstanc

2020-06-22 10:03:49 497

原创 Spring源码编译

我本地环境idea 2018.3gradle 4.10.2spring framework: 5.2.0注:编译成功的一些版本:一、下载源码可以在github上下载git clone https://github.com/spring-projects/spring-framework.git二、配置gradle的环境因为spring源码是通过gradle编译的,所以要先配置gradle的环境变量1、下载gradle的下载地址:https://services.gradle.org

2020-06-22 08:42:42 168

转载 解决textarea值FreeMarker在生成word时不换行的问题

textarea中值假如有换行,在保存到数据库时将换行保存成了\n,而在使用free marker生成word时,会将\n替换成空格。所以将text area值中将\n替换<w:br/>即可。tring content = textArea.replaceAll("\n", "<w:br/>"));原文:https://blog.csdn.net/DownThreeLan/article/details/51321041...

2020-06-16 09:36:05 991

转载 js合并table表格中一列合并相同内容的单元格

<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>Title</title> <script type="text/javascript" src="./jquery-1.7.2.min.js" charset="UTF-8"></script> <style> t

2020-06-04 17:12:02 1677

原创 解决org.springframework.boot.context.properties.bind.BindException: Failed to bind properties under异常

异常信息org.springframework.boot.context.properties.bind.BindException: Failed to bind properties under 'logging.level' to java.util.Map<java.lang.String, org.springframework.boot.logging.LogLevel>...

2020-04-19 22:18:53 18308 3

原创 解决java.sql.SQLException: The server time zone value '�й���׼ʱ��' is unrecognized。。的解决方案

报错信息Caused by: com.mysql.cj.exceptions.InvalidConnectionAttributeException: The server time zone value '�й���׼ʱ��' is unrecognized or represents more than one time zone. You must configure either the...

2020-04-17 08:45:36 6808 2

空空如也

空空如也

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

TA关注的人

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