今天在一个基于SSM的项目里出现以下报错 Cannot convert value of type [java.lang.String] to required type [java.util.Date] for property 'xxx': no matching editors or conversion strategy found 报错内容大概理解,就是前端输入给后台的是一个字符串,后台需要Date类型嘛,这之间的转换出错,解决办法是: 在对应的controller中增加属性编辑器:
由于弄这个的时候浪费了太多的时间,所以才记录下这个错,给大伙参考下 检查了一下,配置啥的都没问题的,但在redis集群机器上就可以,错误如下: Exception in thread "main" redis.clients.jedis.exceptions.JedisConnectionException: Could not get a resource from the pool 原因: 是因为我在创集群的时候的ip地址是:127.0.0.1,不是本机的电脑访问的话是不能访问的,
解决方法1: 关掉Sql Server再打开, 重新查询 解决方法2: select T.* from( select row_number() over(order by age desc) as row , age from T_Customers) as T where row between 1 and 2 这一句的结果仍然是一个结果集,即还是一个表,而之后的as b的这个b和表的类型不匹配,才会出现的错误. 可以写成这样:as T(row ,age)
@Select("SELECT id FROM ae_post ORDER BY id DESC LIMIT #{page},#{size}") List<Post> getAllForPage(@Param("page") int page, @Param("size")int size); dao层写入,解决方法如上 注:多参数需要添加 @Param("参数名") int 参数名
执行sql group by查询时报错 SELECT id from userz GROUP BY username Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'userinfo. 原因: mysql实现了对功能依赖的检测,如果启用了only_full_group_by sql模式(在默认情况下是这样),那么mysql就会拒绝选择列表.条件或顺序列表引用的查询,
ES中时间查询报错:Caused by: ElasticsearchParseException[failed to parse date field [Sun Dec 31 16:00:00 UTC 2017] with format [yyyy-MM-dd HH:mm:ss||yyyy-MM-dd||epoch_millis]]; spring boot集成ES进行时间范围查询,报错如下: * Failed to execute phase [query], all shards faile
Android构建时报错: app:lintVitalRelease[Fatal Error] :3:214: 与元素类型 “item” 相关联的 “name” 属性值不能包含 ‘<’ 字符. Could not read /Users/panxin/Library/Android/sdk/platform-tools/api/annotations.zip java.io.IOException: Could not parse XML from android/accounts/annota