GitHub

Spring and RESTEasy Customized Example

Example of using RESTEasy with: - Spring - WildFly

The module shows an example to fully customize the Spring and RESTEasy loading process.

Building the project

$ mvn clean install

Running the project and manually testing it

$ mvn wildfly:run

Using the curl command to access this URL:

$ curl localhost:8080/resteasy-spring-customized/rest/servlet

And it will print out the internal Dispatcher instance fetched from SpringBeanProcessorServletAware.

Deploying The Project To WildFly

This example has embedded wildfly-maven-plugin embedded, so it can be deployed to a managed WildFly server by running the Maven command. Run the following command to build the example, download WildFly server, start the server and finish deployment automatically:

$ mvn wildfly:run

After the embedded WildFly server is downloaded and run, access the example service with following curl command:

$ curl http://localhost:8080/resteasy-spring-customized/rest/servlet

And it will print the result like:

org.jboss.resteasy.core.SynchronousDispatcher@bc35ba

Read the original on github.com ↗