Knowledge

This'blog is for U

Git 使用 HTTP / HTTPS 传输协议的代理方法

git config --global http.proxy <protocol>://<host>:<port>

例如:

git config --global http.proxy http://127.0.0.1:9999

编辑 /conf/logging.properties,将以下两个编码配置改为 GBK

1catalina.org.apache.juli.AsyncFileHandler.encoding = GBK
java.util.logging.ConsoleHandler.encoding = GBK

同时适用于使用 IntelliJ IDEA 配置 Tomcat 启动项目后控制台乱码的情况。

事情发生在使用 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
阅读全文 »

  • 查询端口号
netstat -ano|findstr 8080 
  • 查询进程
tasklist|findstr 进程ID
taskkill /pid 进程ID-t -f
0%