在 VSCode 中配置 Java 开发环境
发表于
更新于
首先安装 Extension Pack for Java 插件。
为 Git 设置代理
发表于
更新于
解决 tomcat 控制台中文乱码
发表于
更新于
编辑 /conf/logging.properties
,将以下两个编码配置改为 GBK
。
1catalina.org.apache.juli.AsyncFileHandler.encoding = GBK
java.util.logging.ConsoleHandler.encoding = GBK
同时适用于使用 IntelliJ IDEA 配置 Tomcat 启动项目后控制台乱码的情况。
为什么不能修改 Twitter 的显示名称
发表于
更新于
Note: When you are initially going through your profile set-up, you will not see the option to change your display name, until you have a profile and header photo uploaded.
Git 重命名远端分支
发表于
更新于
要修改 Git 远程仓库中的分支名称,可以按以下步骤操作:
使用 MyBatis-Plus 更新字段为 null 值时报错
发表于
更新于
事情发生在使用 Oracle 数据库 时,通过 UpdateWrapper
更新一个字段为 null 时报了如下错误:
org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.type.TypeException: Could not set parameters for mapping: ParameterMapping{property='ew.paramNameValuePairs.MPGENVAL1', mode=IN, javaType=class java.lang.Object, jdbcType=null, numericScale=null, resultMapId='null', jdbcTypeName='null', expression='null'}. Cause: org.apache.ibatis.type.TypeException: Error setting null for parameter #1 with JdbcType OTHER . Try setting a different JdbcType for this parameter or a different jdbcTypeForNull configuration property. Cause: java.sql.SQLException: 无效的列类型: 1111
Linux 下编译安装 Redis
发表于
更新于
首先进入官网 Download | Redis 下载安装包。
常用 cmd 命令
发表于
更新于
- 查询端口号
netstat -ano|findstr 8080
- 查询进程
tasklist|findstr 进程ID
taskkill /pid 进程ID-t -f