logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

SpringBoot Feign接口调用启动类异常Consider defining a bean of type ‘xxx‘ in your configuration.

问题描述:Description:Field iDeptFeign in cn.ffcs.ints.modules.questionnaire.controller.QuestionnaireController required a bean of type 'cn.ffcs.cms.feign.ifeign.IDeptFeign' that could not be found.The inj

#java
ORA-00918: column ambiguously defined

ORA-00918: column ambiguously defined未明确定义列原因:连表的时候,两张表中都存在SELECT查询的字段。数据库无法鉴别需要的查询字段来自哪张表。解决方案:在表明后加上取表别名,然后在查询的字段前加上表别名就OK了!例如:学生表和课程表都存在字段name,分别代表学生姓名和课程名称。SELECT s.name FROM Student sLEFT JION Ob

#sql
使用callSettersOnNulls配置解决数据库sql字段为空值不返回的问题

今天开发联调的时候发现了这样一个问题:Mybatis的sql查询语句select一些字段,resultType返回类型是Map,用sql在数据库中执行有返回,不过值是null,但是用postman测试接口数据返回的时候,这个字段却不见了,导致前端接收字段Key和Value丢失。根据业务需求,我们想返回所有字段,包括空值字段。查阅资料,需要用到callSettersOnNulls的相关配置。方法一:

#java
java.lang.Class cannot be cast to java.lang.reflect.ParameterizedType的解决方案之一

Constructor threw exception; nested exception is java.lang.ClassCastException: java.lang.Class cannot be cast to java.lang.reflect.ParameterizedType/*** 获取泛型T的class类对象* @return 泛型T的class类对象*/public Cl

#java
VScode git commit(提交)和push(推送)后,如何撤回?

解决方案:commit(提交)后撤回push(推送)后撤回1、打开终端,查看提交日志 > git log2、找到本地存放代码的位置,右击鼠标,选择【Git Bash Here】3、执行git reset --hard 【版本号】4、执行git push origin 【分支如:dev】 --force以上步骤详情可见下面这篇文章,同理。相关文章 > IDEA git push(推送)后

#git
java.io.IOException: The server sockets created using the LocalRMIServerSocketFactory的解决方案之一

SpringBoot项目启动报错java.io.IOException: The server sockets created using the LocalRMIServerSocketFactory only accept connections from clients running on the host where the RMI remote objects have been ex

#idea
java.io.IOException: The server sockets created using the LocalRMIServerSocketFactory的解决方案之一

SpringBoot项目启动报错java.io.IOException: The server sockets created using the LocalRMIServerSocketFactory only accept connections from clients running on the host where the RMI remote objects have been ex

#idea
Java实现方法接口入参同时包含文件、字段和对象等多种类型。HTTP请求返回415状态,Content type ‘application/octet-stream‘ not supported错误。

Java实现方法接口入参同时包含文件、字段和对象等多种类型。HTTP请求返回415状态,Content type ‘application/octet-stream‘ not supported错误。

#java#postman
Error: `gyp` failed with exit code: 1的解决方案

解决方案:1、进入node_modules,删除node-gyp2、执行npm i -g node-gyp3、删除node_modules4、执行npm i -d完成!

    共 12 条
  • 1
  • 2
  • 请选择