- 博客(17)
- 收藏
- 关注
转载 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
1020
原创 记录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
1197
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
3969
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
1815
转载 修改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
97
转载 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.youkuaiyun.com/qq_35624642/article/details/79802328
2020-07-06 22:31:46
542
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
2391
原创 Java中利用freemarker导出word表格并合并单元格
1、word表格的模板另存为xml格式:将保存的xml改成.ftl格式化一下xml,看看文件中的带有是否正确注:有可能出现{}是否正确注:有可能出现是否正确注:有可能出现{标签。。。再},这种情况复制没有这种情况的到这就行了2、Java代码1、需要导入freemarker的包<dependency> <groupId>org.freemarker</groupId> <artifactId>freemarker<
2020-06-24 11:43:17
3663
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
2838
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
530
原创 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
189
转载 解决textarea值FreeMarker在生成word时不换行的问题
textarea中值假如有换行,在保存到数据库时将换行保存成了\n,而在使用free marker生成word时,会将\n替换成空格。所以将text area值中将\n替换<w:br/>即可。tring content = textArea.replaceAll("\n", "<w:br/>"));原文:https://blog.youkuaiyun.com/DownThreeLan/article/details/51321041...
2020-06-16 09:36:05
1058
转载 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
1757
原创 解决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
18874
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
6837
2
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人