org.glassfish.jersey.examples.hello.spring.annotations.annotations
Class SpringRequestResource
java.lang.Object
org.glassfish.jersey.examples.hello.spring.annotations.annotations.SpringRequestResource
@Singleton
@Path(value="spring-hello")
@Service
public class SpringRequestResource
- extends Object
Integration of jersey and spring.
This rest controller is a singleton spring bean with an autowired depency
from spring
- Author:
- Geoffroy Warin (http://geowarin.github.io)
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SpringRequestResource
public SpringRequestResource()
getHello
@GET
@Produces(value="text/plain")
public String getHello()
Copyright © 2007-2014, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.