quarkus - 关于 BigDecimal 反射的 Quarkus 警告
问题描述
Quarkus 在启动期间显示此警告:
2020-05-07 10:24:21,302 WARN [io.qua.dep.ste.ReflectiveHierarchyStep] (build-13) Unable to properly register the hierarchy of the following classes for reflection as they are not in the Jandex index:
- java.math.BigDecimal
要重现,只需创建一个仅包含以下两个类的新 Quarkus 项目。
import java.math.BigDecimal;
public class Product {
private int id;
private BigDecimal price;
public int getId () {
return id;
}
public void setId (int id) {
this.id = id;
}
public BigDecimal getPrice () {
return price;
}
public void setPrice (BigDecimal price) {
this.price = price;
}
}
@Path("Products CRUD")
@Consumes(MediaType.APPLICATION_JSON)
@Produces(MediaType.APPLICATION_JSON)
public class ProductsResource {
@GET
public Product get () {
return new Product();
}
}
警告出现在版本 1.4.2.Final 中。在版本 1.4.1.Final 中没有。Quarkus 是否改变了什么或者这是一个回归问题?
解决方案
推荐阅读
- python - Python List 和 If 语句问题
- java - 使用@FormParam 上传文件时的非法 URL 编码字符
- c# - 如何在 c# 中的异步方法内同步执行方法?
- php - 如何使用 Divi 主题在 WooCommerce 产品上显示自定义分类
- vmware - VCAP 的完整形式
- javascript - 如何在 Puppeteer 中绕过 CSP 或 ctrl+f5
- sql - 使用正则表达式将多个值从列转换为行
- github - 有没有办法在Jmeter和Github之间集成来推送jmx文件
- python-3.x - 如何让 Dramatiq 在 Windows / WSL 环境中使用 redis?
- java - 如何通过单击 HBox 而不是按钮来切换 SceneBuilder