- 博客(24)
- 资源 (3)
- 收藏
- 关注
原创 Linux 上DateFormat.getDateTimejava.text.Parse()方法异常,报错java.text.ParseException: Unparseable date
DateFormat.getDateTimejava.text.Parse()方法在Windows环境执行正常,Linux 上抛出异常java.text.ParseException: Unparseable date解决方法:String str = "2021-10-25 15:30:36";Date date = new Date();java.text.SimpleDateFormat df = new java.text.SimpleDateFormat("yyyy-MM-dd HH:mm
2021-10-27 20:39:03
509
原创 postgre修改字段类型报错:ERROR: default for column “XXX“ cannot be cast automatically to type numeric
建表的时添加了默认值,先删除默认值再进行转换。alter table x_synctask alter column XXX drop default ;alter table x_synctask alter column XXX type numeric(8) using XXX::numeric(8);
2021-09-29 16:34:21
2179
原创 Idea 连接 mysql数据库报错,需配置serverTimezone
Idea 连接 mysql数据库报错,com.mysql.cj.exceptions.InvalidConnectionAttributeException: 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 ‘serverTimezone’ con
2021-04-11 22:13:48
716
原创 Java用Jedis连接阿里云的Redis时的配置
Java用Jedis连接阿里云的Redis时的配置1、修改配置redis.conf 文件:将bind 127.0.0.1注释掉,将protected-mode yes 改为 no。2、开放端口- firewall-cmd --zone=public --add-port=6379/tcp --permanet # 开放端口- systemctl restart firewalld.service # 重启防火墙- 阿里云控制台配置安全组- 重启redis引入依赖:<d.
2021-01-07 11:03:18
540
2
原创 Linux下安装Redis 6.0时,make报错
Linux下安装Redis 6.0时,make报错,需要安装最新的gcc 9;1.sudo yum install -y centos-release-sclsudo yum install -y devtoolset-9-gcc devtoolset-9-gcc-c++2.sudo vi /etc/profile 加入如下内容:scl enable devtoolset-9 bashsource /opt/rh/devtoolset-9/enable3.执行如下命令立即生效source
2021-01-05 14:36:30
377
原创 存储过程中 where 过滤条件不生效
其实是以一个小的注意点,知道这个知识点的人或许觉得没什么,不知道的人肯定像我一样一个大写的懵。执行 UPDATE Tablexxx T SET T.name= ‘xxxx’ WHERE T.code=code; 结果发现Tablexxx 全表都被更新了。后来发现存储过程 where 条件后的变量名不能和数据库字段名相同(不区分大小写)。于是随便改了参数名字,UPDATE Tablexxx T SET T.name= ‘xxxx’ WHERE T.code=code_1;问题解决了。..
2020-12-09 21:59:26
895
1
原创 gitee 已经提交ssh key,还要输入用户名和密码
发现clone文件使用的是https方式$ git clone https://gitee.com/shumatthew/gitstudy.git需要改成ssh连接如: git remote set-url origin “项目的ssh地址”$ git remote set-url origin git@gitee.com:shumatthew/gitstudy.git
2020-12-04 10:10:41
1350
2
原创 Linux SUSE 11修改字符集
Linux版本SUSE 11,系统语言为中文,想修改为英文,依次尝试了以下方法:/etc/sysconfig/i18n 修改如下LANG=“en_US.UTF-8” 再执行source /etc/sysconfig/i18n/etc/sysconfig/language,修改以下:RC_LANG=“en_US.UTF-8”RC_LC_ALL=“en_US.UTF-8”再执行source /etc/sysconfig/language,1和2两种方式,都是当时生效了,退出再次登录后又变回中文了。
2020-11-26 19:38:23
1139
原创 Locale.getDefault()使用注意
Java应用语言国际化处理时,使用Locale.getDefault()。本机Windows机器如下方式实现:(1)可通过修改操作系统的语言设置。(2)Java启动参数添加:-Duser.language=en -Duser.country=US。linux可通过修改系统语言来实现:vi /etc/sysconfig/i18n 修改如下LANG=“en_US.UTF-8”。source /etc/sysconfig/i18n 使其生效。...
2020-11-25 15:12:20
1875
翻译 IDEA配置Tomcat Server下的local没反应
IDEA配置Tomcat Server下的local没反应因为使用的汉化版的IDEA,估计有bug,删除汉化包即可。汉化包一般是lib下的resources_cn.jar。
2020-11-16 16:03:40
1274
1
原创 mysql数据库无法插入中文字符
C:\Users\l>mysql -uroot -pEnter password: ******Welcome to the MySQL monitor. Commands end with ; or \g.Your MySQL connection id is 47Server version: 5.7.19 MySQL Community Server (GPL)Copyright © 2000, 2017, Oracle and/or its affiliates. All righ
2020-11-14 11:30:17
290
原创 Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
解决方法:依次执行systemctl daemon-reloadsudo service docker restartsudo service docker status
2020-11-11 14:25:07
84
原创 Win10环境下安装mysql报错,应用程序无法正常启动0xc000007b
Mysql在Win10环境下安装,执行 mysqld -install 时报错,最开始时说缺少msvcr120.dll 和 msvcp120.dll,网上down了放在指定目录后,又报应用程序无法正常启动0xc000007b,最后网上下载了DirectX修复工具v4.0增强版解决了问题。下载链接:https://weidown.com/xiazai/733.html(也是网上找到,如有侵权请告知。)...
2020-11-09 22:59:33
601
1
原创 linux环境部署https应用后报错
linux环境部署https应用,keystore文件没有问题,启动tomcat服务后报错如下:INFO: Not binding factory to JNDI, no JNDI name configured2020-01-15 03:22:27,231:ERROR DispatcherServlet - Context initialization failedorg.springfr...
2020-01-16 12:15:21
474
原创 STS集成lombook报错 java was started but returned exit code=1
STS集成lombook报错 java was started but returned exit code=1解决方法:eclipse.ini文件添加 -javaagent:lombok.jar ,如下图:
2019-11-18 02:33:46
380
转载 procedure sde.pinfo_util.get_sde_id ORA-06508: PL/SQL: could not find program unit being called
Error executing stored procedure sde.pinfo_util.get_sde_idORA-06508: PL/SQL: could not find program unit being called解决办法:grant CREATE SESSION to sde;grant CREATE VIEW to sde;grant CREATE ANY IND...
2019-10-22 13:38:22
1439
原创 Flex datagrid自动换行
添加 variableRowHeight=“true” 和 wordWrap=“true”<mx:DataGrid id="***" variableRowHeight=“true” >mx:columns<mx:DataGridColumn dataField=“CODE” wordWrap=“true” /><mx:DataGridColumn d...
2019-06-04 15:39:22
322
原创 BEA-149417 Another process is using this file '******‘The server will attempt to deploy the appli
weblogic部署的应用,启动时遇到了如下问题: <Another process is using this file ‘*************************************’. The server will attempt to deploy the application once it is unlocked by the other process.&g...
2019-04-08 15:34:36
387
原创 Cannot connect to database because the database client software failed toload.
arcgis 创建企业地理数据库报错:Cannot connect to database because the database client software failed toload.Be suer that the database client software is installed and configuredcorrectly。解决方法:环境变量中添加如下...
2019-03-22 18:01:07
7768
翻译 手工编译Flex SDK 多国语言包
项目需要将目前版本提供给其它地区:台湾、日韩等,面临着项目语言的国际化问题。语言代号:大陆:zh_CN台湾:zh_TW香港:zh_HK…例如想支持繁体,没有zh_TW语言包怎么办?flex sdk 中其实是支持生成的,具体操作步骤:1、cmd 进入SDK安装目录2、输入copylocale en_US zh_TW (其它语言,替换zh_TW就可以了)并按下回车,然后进行编...
2018-11-04 20:57:15
306
原创 flash builder4.6 集成svn1.8报错
打开Flash Builder,在菜单中选择帮助——安装新软件。在弹出的“安装”窗口中点击添加按钮。在名称中写SVN,在位置中粘入http://subclipse.tigris.org/update_1.8.x,点击确定。按图中标记的打钩,并点击下一步开始安装。再下一步。下载过程中,报错,然后安装的了小乌龟SVN,再重新在flex中下载就没有报错了,不知道什么原因。...
2018-11-04 20:43:17
393
翻译 连接数据库报错,connected to an idle instance
sqlplus / as sysdba,连接数据库报错,connected to an idle instancestartup,又报错, ora 00119和 ora 00132解决方法:原文:https://blog.youkuaiyun.com/xb12369/article/details/267202751,找到一个文件夹:pfile;虽然每个人安装oracle的路径不一样,但是在安装的目...
2018-11-01 19:51:24
30840
原创 flash builder 4.6 的破解安装
先改host文件,再安装~记得到C:\WINDOWS\system32\drivers\etc,在host中加入一下连接,127.0.0.1 activate.adobe.com127.0.0.1 practivate.adobe.com127.0.0.1 ereg.adobe.com127.0.0.1 activate.wip3.adobe.com127.0.0.1 wip3.ado...
2018-11-01 17:03:38
1038
原创 adobe flash builder4.6 安装存在问题,可能未安装某些必需组件
在安装过程中,提示您的安装存在问题,可能未安装某些必需组件。解决方法:找到以下文件夹:C:\Program Files\Common Files\Adobe删除再安装还是不行的话,重启电脑再安装。尽可能关闭防火墙。...
2018-11-01 16:59:52
1450
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人