# resteasy-spring-boot **Repository Path**: zirantian/resteasy-spring-boot ## Basic Information - **Project Name**: resteasy-spring-boot - **Description**: No description available - **Primary Language**: Java - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-01-09 - **Last Updated**: 2025-01-09 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README [![Build Status](https://travis-ci.org/paypal/resteasy-spring-boot.svg?branch=master)](https://travis-ci.org/paypal/resteasy-spring-boot) [![Codacy Badge](https://api.codacy.com/project/badge/grade/4d23b74b13c3464b95f1acdb40b35cd7)](https://www.codacy.com/app/fabiocarvalho777/resteasy-spring-boot) [![Codacy Coverage](https://api.codacy.com/project/badge/coverage/4d23b74b13c3464b95f1acdb40b35cd7)](https://www.codacy.com/app/fabiocarvalho777/resteasy-spring-boot) [![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.paypal.springboot/resteasy-spring-boot-starter/badge.svg?style=flat)](http://search.maven.org/#search|ga|1|g:com.paypal.springboot) [![License](http://img.shields.io/:license-Apache%202-red.svg)](http://www.apache.org/licenses/LICENSE-2.0.txt) # RESTEasy Spring Boot Starter --- **Important: this project has been transfered from PayPal team to RESTEasy team.** **All future versions are going to be managed and released from https://github.com/resteasy/resteasy-spring-boot.** **This Git repo will be kept here for historical purposes only.** --- There was no RESTEasy Spring Boot starter out there, so PayPal team decided to create one and share it with the community.
This Spring Boot starter is fully functional, has ZERO PayPal specific code on it, and can be used normally by any regular Spring Boot application that wants to have REST endpoints and prefers RESTEasy as the JAX-RS implementation. Also, this RESTEasy Spring Boot starter integrates with Spring as expected, which means every JAX-RS REST resource that is also a Spring bean will be automatically auto-scanned, integrated, and available. ## Features * Enables RESTEasy for Spring Boot applications * Supports JAX-RS providers, resources and sub-resources as Spring beans * Supports automatic discovery and registration of multiple [JAX-RS Application](http://docs.oracle.com/javaee/7/api/javax/ws/rs/core/Application.html) classes as Spring beans * Supports optional registration of [JAX-RS Application](http://docs.oracle.com/javaee/7/api/javax/ws/rs/core/Application.html) classes via class-path scanning, or manually, via configuration properties (or YAML) file * Leverages and supports RESTEasy configuration * Supports RESTEasy Asynchronous Job Service ## Quick start ### Adding POM dependency Add the Maven dependency below to your Spring Boot application pom file.
``` xml com.paypal.springboot resteasy-spring-boot-starter 2.3.4-RELEASE runtime ``` ### Registering JAX-RS application classes Just define your JAX-RS application class (a subclass of [Application](http://docs.oracle.com/javaee/7/api/javax/ws/rs/core/Application.html)) as a Spring bean, and it will be automatically registered. See the example below. See section _JAX-RS application registration methods_ in [How to use RESTEasy Spring Boot Starter](mds/USAGE.md) for further information. ``` java package com.sample.app; import org.springframework.stereotype.Component; import javax.ws.rs.ApplicationPath; import javax.ws.rs.core.Application; @Component @ApplicationPath("/sample-app/") public class JaxrsApplication extends Application { } ``` ### Registering JAX-RS resources and providers Just define them as Spring beans, and they will be automatically registered. Notice that JAX-RS resources can be singleton or request scoped, while JAX-RS providers must be singletons. ### Further information See [How to use RESTEasy Spring Boot Starter](mds/USAGE.md). ## Release notes See [RESTEasy Spring Boot starter release notes](mds/RELEASE_NOTES.md). ## Projects - **sample-app**: A simple Spring Boot application that exposes JAX-RS endpoints as Spring beans using RESTEasy via this RESTEasy Spring Boot starter. - **resteasy-spring-boot-starter**: The RESTEasy Spring Boot Starter project. - **resteasy-spring-boot-starter-test**: Integration tests for the RESTEasy Spring Boot Starter project. ## Reporting an issue Please open an issue using our [GitHub issues](https://github.com/paypal/resteasy-spring-boot/issues) page. ## Contributing You are very welcome to contribute to RESTEasy Spring Boot starter! Read our [Contribution guidelines](mds/CONTRIBUTING.md). ## Contacting us To contact us, please send an email to fabiocarvalho777@gmail.com. ## License This project is licensed under the [Apache 2 License](License.html).