泽西岛1.18.1。我在服务器上定义了以下泽西资源:
@Path("/location")
@Produces(MediaType.APPLICATION_JSON)
public class LocationResourceImpl implements LocationResource {
private ObjectMapper mapper;
public LocationResourceImpl() {
super();
mapper = new ObjectMapper();
// TODO: Co
3.1.1泽西岛玻璃鱼
下面的无状态会话bean作为JAX-RS资源公开。VehicleResource包含在WAR中,其他EJB包含在EJB中。整个应用程序被打包并部署为EAR。
@Stateless
@Path("/")
@DeclareRoles({"production"})
public class VehicleResource {
private static final Logger logger = Logger.getLogger(VehicleResource.class.getName());
private static final