我想知道,如果可以使用Spring Web MVC和Jersey標註,因爲我有一個大問題,Spring不能解析部分變量,澤西可以和我需要將一些Jersey代碼遷移到Spring MVC 。是否有可能將Spring MVC與Jersey註釋一起使用?
我在新澤西州下面的代碼:
@PUT
@Path("{storageId}/{repositoryId}/{path:.*}")
@PreAuthorize("hasAuthority('ARTIFACTS_DEPLOY')")
public Response upload(@PathParam("storageId") String storageId,
@PathParam("repositoryId") String repositoryId,
@PathParam("path") String path,
InputStream is)
{
...
}
我想在將它轉換爲Spring MVC的,但是,就像我在這個崗位SO解釋過,我遇到的問題與解析路徑變量。
因此,我想知道(和一個單獨的問題):是否有可能在Spring MVC中使用相同的Jersey註釋?
@PritamBanerjee:這是一個例子如何連接Jersey和Spring。我已經知道如何做到這一點。 – carlspring
註解只是:註釋。他們什麼都不做。即使Spring支持JAX-RS註釋(它沒有),它仍然需要解析它們的值。 –