JAX-RS @PathParam Cannot resolve symbol for parameter with a regex
已回答
If a @Path has a regex in it, IntelliJ is marking them as being unresolved in the @PathParam's

Minimal example which does compile fine:
package com.whatever
import javax.ws.rs.*;
@Path("/test")
public class Example {
@GET
@Path("/{param1}")
public void getGood(
@PathParam("param1") String param1
) {
}
@GET
@Path("/{param1:.+}")
public void getBad(
@PathParam("param1") String param1
) {
}
}
请先登录再写评论。
Please see https://youtrack.jetbrains.com/issue/IDEA-228049.
Should be fixed in 2019.3.1: https://confluence.jetbrains.com/display/IDEADEV/IDEA+2019.3+latest+builds .