
springboot-错误总结
黑鱼Heyu
这个作者很懒,什么都没留下…
展开
-
向es导入数据如何带“_class“路径
不用客户端的方法添加,客户端方法添加不带路径原创 2021-12-13 09:06:07 · 1313 阅读 · 0 评论 -
Index [CruisingCompany] not found.; nested exception is [CruisingCompany]
Index [CruisingCompany] not found.; nested exception is [CruisingCompany] ElasticsearchStatusException[Elasticsearch exception [type=invalid_index_name_exception, reason=Invalid index name [CruisingCompany], must be lowercase]]org.springframework.data.e.原创 2021-12-13 08:58:55 · 2123 阅读 · 1 评论 -
mysql 一个值匹配多个字段
select * from 表concat(字段1,字段2,...) like CONCAT('%',#{值}, '%')原创 2021-11-23 15:48:42 · 2107 阅读 · 3 评论 -
Caused by: java.lang.IllegalStateException: Ambiguous mapping. Cannot map ‘Controller‘
@RequestMapping("\test")中的路径和controller中其它方法的路径重复了原创 2021-11-23 09:16:34 · 613 阅读 · 0 评论 -
syntax error: syntax error, error in :‘name like ‘%‘?‘%‘‘
错误:解决:使用 (CONCAT('%',#{字段}), '%')或者:'%${字段}%'原创 2021-11-12 10:00:43 · 1957 阅读 · 0 评论 -
解决端口占用问题
WIN+R 打开命令窗口,输入CMDnetstat -ano |findstr xxx查找端口号对应的PID(进程号)结束进程taskkill /t /f /im PID原创 2021-11-11 15:19:23 · 204 阅读 · 0 评论 -
java.lang.IllegalArgumentException: [multi_match] requires query value
原因是controller层传递的参数名和测试的不一样,导致接收不到参数原创 2021-11-09 10:20:27 · 3606 阅读 · 0 评论 -
org.springframework.web.bind.MissingServletRequestParameterException: Required String parameter ‘xxx
controller的@RequestParam true 改成false@RequestParam(value = "user", required = true)原创 2021-11-08 10:13:46 · 382 阅读 · 0 评论 -
Unknown column ‘XXX‘ in ‘where clause‘
原因是QueryWrapper.like里面的column字段和数据库字段不匹配修改之后正常查询原创 2021-11-03 10:38:33 · 403 阅读 · 0 评论 -
可选int参数“id”存在,但由于被声明为基元类型,因此无法转换为null值。考虑将其声明为对应的基元类型的对象包装器。
原因是忘了在id前面加上@PathVariable如果路径后面有参数就要加@PathVariable原创 2021-07-28 09:35:53 · 1944 阅读 · 0 评论