让我们想象一下我想要一个not.my.Clock通过我的应用程序: public final class Clock {
... // business
}
我可以写: @Singleton
public class ClockProvider implements Supplier<Clock> {
private Clock clock;
@PostCon
我有以下REST端点: @Stateless
@Path("test")
public class TestResource {
@POST
@Consumes(MediaType.APPLICATION_JSON)
@Produces(MediaType.APPLICATION_JSON)
public TestDTO test(TestDTO dt
首先,有相关岗位: GlassFish Server update center installation times out Java EE 7 updatetool installation fails 我从这里得到了我的Java EE 7 SDK(更新3):http://www.oracle.com/technetwork/java/javaee/downloads/index.html 我