Class App
java.lang.Object
org.apache.juneau.examples.rest.springboot.App
Entry point for Examples REST application when deployed as a Spring Boot application.
 
See Also:
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionOptionally return an injectable message provider for theHelloWorldResourceclass.Optionally return theHelloWorldResourceobject as an injectable bean.Our root REST bean.org.springframework.boot.web.servlet.ServletRegistrationBean<jakarta.servlet.Servlet>getRootServlet(RootResources rootResources) static voidEntry point method.
- 
Constructor Details- 
Apppublic App()
 
- 
- 
Method Details- 
mainEntry point method.- Parameters:
- args- Command-line arguments.
 
- 
getRootResourcesOur root REST bean.Note that this must extend from SpringRestServletso that child resources can be resolved as Spring beans.All REST objects are attached to this bean using the Rest.children()annotation.- Returns:
- The root resources REST bean.
 
- 
getHelloWorldResourceOptionally return theHelloWorldResourceobject as an injectable bean.- Returns:
- The hello-world REST bean.
 
- 
getHelloWorldMessageProviderOptionally return an injectable message provider for theHelloWorldResourceclass.- Returns:
- The message provider for the hello-world REST bean.
 
- 
getRootServlet@Bean public org.springframework.boot.web.servlet.ServletRegistrationBean<jakarta.servlet.Servlet> getRootServlet(RootResources rootResources) - Parameters:
- rootResources- The root REST resource servlet
- Returns:
- The servlet registration mapped to "/*".
 
 
-