欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  IT编程

订单、退款中心错误日志集

程序员文章站 2022-04-11 09:50:23
订单中心错误日志文章目录订单中心错误日志一、swagger启动访问Illegal DefaultValue null for parameter type integer一、swagger启动访问Illegal DefaultValue null for parameter type integeri.s.m.p.AbstractSerializableParameter [getExample] [TxId: fbdef50e9a010e4b] - Illegal DefaultValue nul...

订单、退款中心错误日志

一、swagger启动访问Illegal DefaultValue null for parameter type integer

i.s.m.p.AbstractSerializableParameter [getExample] [TxId: fbdef50e9a010e4b] 
- Illegal DefaultValue null for parameter type integer
java.lang.NumberFormatException: For input string: ""
	at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) ~[?:1.8.0_181]
	at java.lang.Long.parseLong(Long.java:601) ~[?:1.8.0_181]
	at java.lang.Long.valueOf(Long.java:803) ~[?:1.8.0_181]

修正

    @ApiModelProperty(value = "描述", example = "示例")
    private Integer val;

参数@ApiModelProperty注解在Integer类型参数使用时需添加example属性值

二、打包警告:Generating equals/hashCode implementation but without a call to superclass, even though this class does not extend java.lang.Object. If this is intentional, add ‘@EqualsAndHashCode(callSuper=false)’ to your type.

^
D:\MRXS\fs-tiangou\fs-tiangou-api\src\main\java\com\mrfresh\tiangou\param\refund\RefundPageParam.java:10: 
警告: Generating equals/hashCode implementation but without a call to superclass, even though this class does not extend java.lang.Object. If this is intentional, add '@EqualsAndHashCode(callSuper=false)' to your type.
@Data
^

修正
根据提示添加以下直接就行,也可忽略不计。

@EqualsAndHashCode(callSuper=false)

三、启动异常:XXX.FeignClientSpecification’, defined in null, could not be registered. A bean with that name has already been defined in null and overriding is disabled.

Description:
The bean 'xxxx.FeignClientSpecification', defined in null, could not be registered. A bean with that name has already been defined in null and overriding is disabled.
Action:
Consider renaming one of the beans or enabling overriding by setting spring.main.allow-bean-definition-overriding=true

修正
根据需要进行选择方案

方案一:@FeignClient(…, contextId = “xxxx”,…) contextId与其它重名,修正contextId的值,建议以对应的Feign为contextId。
方案二:如果某与某个不需要的包重名,全局排除对应的包即可。

四、启用异常:Could not resolve placeholder ‘order.order_timeout’ in value “${order.order_timeout}”

Caused by: java.lang.IllegalArgumentException: Could not resolve placeholder 'order.order_timeout' in value "${order.order_timeout}"
	at org.springframework.util.PropertyPlaceholderHelper.parseStringValue(PropertyPlaceholderHelper.java:178) ~[spring-core-5.1.7.RELEASE.jar:5.1.7.RELEASE]
	at org.springframework.util.PropertyPlaceholderHelper.replacePlaceholders(PropertyPlaceholderHelper.java:124) ~[spring-core-5.1.7.RELEASE.jar:5.1.7.RELEASE]
	at org.springframework.core.env.AbstractPropertyResolver.doResolvePlaceholders(AbstractPropertyResolver.java:237) ~[spring-core-5.1.7.RELEASE.jar:5.1.7.RELEASE]
	at org.springframework.core.env.AbstractPropertyResolver.resolveRequiredPlaceholders(AbstractPropertyResolver.java:211) ~[spring-core-5.1.7.RELEASE.jar:5.1.7.RELEASE]

原因相相关配置不存在
修正
根据需要进行选择方案

方案一:

    @Value("${order.order_timeout:10}")
    private int orderTimeout;

方案二:加上对应的配置

其它后续添加

本文地址:https://blog.csdn.net/qq_40790831/article/details/110954198