
Java常见错误
Time''
111
展开
-
The bean ‘nacosDiscoveryClient‘, defined in class path resource [com/alibaba/cloud/nacos/discovery/N
在yml统计目录添加一个application.properties文件。原创 2022-11-10 16:09:30 · 798 阅读 · 0 评论 -
IllegalStateException: Type handler was null on parameter mapping for property ‘__frch_item_0‘.
错误代码:Caused by: java.lang.IllegalStateException: Type handler was null on parameter mapping for property '__frch_item_0'. It was either not specified and/or could not be found for the javaType (com.x.x.x.x.entity.x) : jdbcType (null) combination业务描述原创 2022-03-26 15:48:04 · 5442 阅读 · 3 评论 -
@NotBlank@NotNull注解不生效对List<Bean>的Bean无效解决方案
需要在controller,和接口上同时添加注解,点击跳转到文档原创 2021-11-11 16:58:47 · 2106 阅读 · 0 评论 -
required a bean of type ‘org.springframework..mail.javamail.JavaMailSender‘ that could not be found.
1.显示找不到bean,注释该项,又报url有错误2.注释该项,又报url有错误3.解决:检查pom.xmlpom打包方式,删除pom,必须为jar打包方式,默认jar打包,所以不用写。原创 2021-01-29 19:26:18 · 11589 阅读 · 2 评论 -
response响应编码格式处理(中文乱码)
response响应编码格式处理(中文乱码)1.处理前的响应{"success":true,"message":"????"}2.加入代码response.setCharacterEncoding("utf-8");response.setHeader("Content-type", "text/html; charset=utf-8");3.处理后的响应{"success":true,"message":"认证成功"}...原创 2021-01-22 11:07:52 · 806 阅读 · 0 评论 -
mybatis-plus3 (xxx required a single bean, but 2 were found:)找到两个bean,
如图:控制台报错MybatisPlusConfig 配置类中的扫描路径@MapperScan(“cn.x.th.mapper”)解决办法:在MybatisPlusConfig 配置类中添加具体的扫描路径@MapperScan(“cn.x.th.mapper”)package cn.itsource.th.config;import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;import com.baomi原创 2021-01-20 19:48:03 · 695 阅读 · 0 评论