Skip to content

Commit

Permalink
RESTEASY-2709 - upgrade resteasy to 4.5.8.Final (#89)
Browse files Browse the repository at this point in the history
* 4.6.3.Final

* RESTEASY-2709 - upgrade resteasy to 4.5.8.Final

* bump ver
  • Loading branch information
liweinan authored Sep 29, 2020
1 parent a527324 commit 91f7ffb
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Add the Maven dependency below to your Spring Boot application pom file.<br>
<dependency>
<groupId>org.jboss.resteasy</groupId>
<artifactId>resteasy-spring-boot-starter</artifactId>
<version>4.6.2.Final</version>
<version>4.6.4.Final</version>
<scope>runtime</scope>
</dependency>
```
Expand Down
10 changes: 5 additions & 5 deletions mds/USAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ Add the Maven dependency below to your Spring Boot application pom file.<br>
<dependency>
<groupId>org.jboss.resteasy</groupId>
<artifactId>resteasy-spring-boot-starter</artifactId>
<version>4.6.2.Final</version>
<version>4.6.4.Final</version>
<scope>runtime</scope>
</dependency>
```

#### 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](#jax-rs-application-registration-methods) for further information.
Just define your JAX-RS application class (a subclass of [Application](https://github.com/eclipse-ee4j/jaxrs-api/blob/master/jaxrs-api/src/main/java/jakarta/ws/rs/core/Application.java)) as a Spring bean, and it will be automatically registered. See the example below.
See section [JAX-RS Application, Resources and Sub-Resources](https://eclipse-ee4j.github.io/jersey.github.io/documentation/latest/jaxrs-resources.html) for further information.

``` java
package com.sample.app;
Expand All @@ -40,7 +40,7 @@ Notice that JAX-RS resources can be singleton or request scoped, while JAX-RS pr

#### JAX-RS application registration methods

JAX-RS applications are defined via sub-classes of [Application](http://docs.oracle.com/javaee/7/api/javax/ws/rs/core/Application.html). One or more JAX-RS applications can be registered, and there are three different methods to do so:
JAX-RS applications are defined via sub-classes of [Application](https://github.com/eclipse-ee4j/jaxrs-api/blob/master/jaxrs-api/src/main/java/jakarta/ws/rs/core/Application.java). One or more JAX-RS applications can be registered, and there are three different methods to do so:

1. By having them defined as Spring beans.
2. By setting property `resteasy.jaxrs.app.classes` via Spring Boot configuration file (properties or YAML). This property should contain a comma separated list of JAX-RS sub-classes.
Expand Down Expand Up @@ -69,7 +69,7 @@ and replaced `resteasy.jaxrs.app.classes`. Property `resteasy.jaxrs.app` has be

#### RESTEasy configuration

RESTEasy offers a few configuration switches, [as seen here](http://docs.jboss.org/resteasy/docs/3.1.1.Final-SNAPSHOT/userguide/html_single/index.html#configuration_switches), and they are set as Servlet context init parameters. In Spring Boot, Servlet context init parameters are defined via Spring Boot `application.properties` file, using the property prefix `server.servlet.context-parameters.*` (search for it in [Spring Boot reference guide](http://docs.spring.io/spring-boot/docs/current/reference/htmlsingle/)).</br>
RESTEasy offers a few configuration switches, [as seen here](https://docs.jboss.org/resteasy/docs/4.5.8.Final/userguide/html_single/index.html#configuration_switches), and they are set as Servlet context init parameters. In Spring Boot, Servlet context init parameters are defined via Spring Boot `application.properties` file, using the property prefix `server.servlet.context-parameters.*` (search for it in [Spring Boot reference guide](http://docs.spring.io/spring-boot/docs/current/reference/htmlsingle/)).</br>

As an example, to set RESTEasy property `resteasy.role.based.security` to `true`, just add the property bellow to Spring Boot `application.properties` file.

Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

<groupId>org.jboss.resteasy</groupId>
<artifactId>resteasy-spring-boot-starter-parent</artifactId>
<version>4.6.2.Final</version>
<version>4.6.4.Final</version>
<packaging>pom</packaging>

<modules>
Expand Down
2 changes: 1 addition & 1 deletion resteasy-spring-boot-starter-test/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
</parent>
<groupId>org.jboss.resteasy</groupId>
<artifactId>resteasy-spring-boot-starter-test</artifactId>
<version>4.6.2.Final</version>
<version>4.6.4.Final</version>
<name>${project.artifactId}</name>

<description>Integration test project for RESTEasy Spring Boot starter</description>
Expand Down
4 changes: 2 additions & 2 deletions resteasy-spring-boot-starter/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
</parent>
<groupId>org.jboss.resteasy</groupId>
<artifactId>resteasy-spring-boot-starter</artifactId>
<version>4.6.2.Final</version>
<version>4.6.4.Final</version>
<name>${project.artifactId}</name>

<description>A Spring Boot starter for RESTEasy</description>
Expand Down Expand Up @@ -62,7 +62,7 @@
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<springboot.version>2.3.2.RELEASE</springboot.version>
<resteasy.version>4.5.7.Final</resteasy.version>
<resteasy.version>4.5.8.Final</resteasy.version>
<resteasy.jackson.version>2.10.3</resteasy.jackson.version>
<jboss-logging.ver>3.4.0.Final</jboss-logging.ver>
<modular.jdk.args/>
Expand Down
4 changes: 2 additions & 2 deletions sample-app-for-wildfly/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<groupId>org.jboss.resteasy</groupId>
<artifactId>spring-boot-sample-app-for-wildfly</artifactId>
<version>4.6.2.Final</version>
<version>4.6.4.Final</version>
<packaging>war</packaging>

<description>Simple test application for the Resteasy Spring Boot starter to deploy to Wildfly</description>
Expand All @@ -15,7 +15,7 @@
<java.version>1.8</java.version>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<resteasy.version>4.5.7.Final</resteasy.version>
<resteasy.version>4.5.8.Final</resteasy.version>
<springboot.version>2.3.2.RELEASE</springboot.version>
</properties>

Expand Down
4 changes: 2 additions & 2 deletions sample-app-no-jaxrs-application/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>org.jboss.resteasy</groupId>
<artifactId>spring-boot-sample-app-no-jaxrs-application</artifactId>
<version>4.6.2.Final</version>
<version>4.6.4.Final</version>
<packaging>jar</packaging>

<description>Simple test application for the Resteasy Spring Boot starter that contains no JAX-RS application class</description>
Expand All @@ -16,7 +16,7 @@
<java.version>1.8</java.version>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<resteasy.version>4.5.7.Final</resteasy.version>
<resteasy.version>4.5.8.Final</resteasy.version>
<springboot.version>2.3.2.RELEASE</springboot.version>
</properties>

Expand Down
4 changes: 2 additions & 2 deletions sample-app/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<groupId>org.jboss.resteasy</groupId>
<artifactId>spring-boot-sample-app</artifactId>
<version>4.6.2.Final</version>
<version>4.6.4.Final</version>
<packaging>jar</packaging>

<description>Simple test application for the Resteasy Spring Boot starter</description>
Expand All @@ -15,7 +15,7 @@
<java.version>1.8</java.version>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<resteasy.version>4.5.7.Final</resteasy.version>
<resteasy.version>4.5.8.Final</resteasy.version>
<springboot.version>2.3.2.RELEASE</springboot.version>

</properties>
Expand Down

0 comments on commit 91f7ffb

Please sign in to comment.