自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 PostgreSQL修改字段int类型为timestamp(报错)

我之前的字段类型为int,需要修改成timestamp时间类型,尝试之后发现不能直接转换,报错如下:ERROR: cannot cast type integer to timestamp without time zoneLINE 2: TYPE TIMESTAMP USING create_time::timestamp without time zon...错误:无法将类型整数强制转换为没有时区的时间戳解决方案:第一步:先把int类型的字段修改成 VARCHARALTER.

2022-03-14 11:13:54 7736

原创 org.postgresql.util.PSQLException: ERROR: operator does not exist: timestamp without time zone >=

报错信息:org.postgresql.util.PSQLException: ERROR: operator does not exist: timestamp without time zone >= character varying原因分析:项目用的 PostgreSQL 数据库,使用 SpringBoot + Mybatis 整合我这边前端传过来的时间是字符串类型的,而数据库是时间类型的,类型不一致,直接使用会报错。修改前的代码: select id,no

2021-12-30 15:09:34 9593 2

原创 org.apache.ibatis.binding.BindingException: Parameter ‘startTime‘ not found. Available parameters

我是Springboot+mybatis项目,写接口时遇到此问题原因:当SQL语句中有多个参数的时候,需要在映射类方法里面加@Param的注解,不然会抛出异常说"找不到参数。"例如:public List<User> findDFPretreatment(String startTime, String endTime);遇到这种情况, 报org.apache.ibatis.binding.BindingException: Parameter 'startTime' no

2021-12-30 14:43:05 1698

空空如也

空空如也

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

TA关注的人

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