更新时间:2023-02-17 11:35:59
您要为@Produces批注提供几种MediaType,因此需要将它们放入数组中:
@Produces
You are providing several MediaType for the @Produces annotation so you need to put them in an array:
@Produces({MediaType.APPLICATION_XML, MediaType.APPLICATION_ATOM_XML})
JAX RS MediaType批注值的格式必须为“名称=值"