0

我有一个使用 jersey-api 开发的网络服务。

我正在使用 rest-assured 来测试资源。当我运行我的测试用例时,我得到以下异常。

[http-bio-8080-exec-1] ERROR T:[] V:[]  c.s.j.spi.container.ContainerRequest - A message body reader for Java class ... and MIME media type application/octet-stream was not found.
The registered message body readers compatible with the MIME media type are:
application/octet-stream ->
  com.sun.jersey.core.impl.provider.entity.ByteArrayProvider
  com.sun.jersey.core.impl.provider.entity.FileProvider
  com.sun.jersey.core.impl.provider.entity.InputStreamProvider
  com.sun.jersey.core.impl.provider.entity.DataSourceProvider

我知道我需要配置我的提供程序类。我不确定如何放心地配置提供程序类?我无法在放心中找到有关配置 jersey api“com.sun.jersey.config.property.classnames”的任何信息。

任何帮助深表感谢。

4

0 回答 0