Skip to content

upslopeio/spring-webflux-hateoas

Repository files navigation

Getting Started

Generate the application

Generate an application from https://start.spring.io/

  1. Under Java use a modern version such as 11+
  2. Add Dependencies
    1. Spring Reactive Web
    2. Spring HATEOAS
    3. (optional) Spring Boot DevTools

You can go directly to this link.

Download the application, unzip, and open in your IDE.

Add properties

In src/main/resources/application.properties add:

spring.main.web-application-type=reactive

Add Bean

Add the following bean somewhere in your app:

 @Bean
 public ForwardedHeaderTransformer forwardedHeaderTransformer() {
     return new ForwardedHeaderTransformer();
 }

See Examples

Next Steps

Separate the POJO (which is likely connected to the database) from the model assemblers.

See this link for details.

Reference Documentation

For further reference, please consider the following sections:

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages