spring-projects / spring-hateoas-examples

Collection of examples on how (and why) to build hypermedia-driven apps with Spring HATEOAS
Apache License 2.0
384 stars 186 forks source link

Spread the word about Java 8 1st class support in Spring 5 #8

Closed michael-simons closed 6 years ago

michael-simons commented 6 years ago

See title.

Btw, are there already ideas to provide autoconfig for this in Boot 2? I had a quick look at the code in Boot as well as in Hateoas. The @Enable annotation is pretty tied to the configuration but I could come up with one or two ideas to provide autoconfiguration. Drop me a line if you're interested, @gregturn or @olivergierke

gregturn commented 6 years ago

Regarding autoconfiguration, we are quite aware that Boot kind of hard wires things in one direction. Instead of HATEOAS autoconfig, it's more like HAL autoconfig, so we're not sure yet how to adapt to picking differing lists of hypermedia types.

So this example tries its best to swap out HAL for HAL-FORMS.

gregturn commented 6 years ago

Resolved via https://github.com/spring-projects/spring-hateoas-examples/commit/d8c7f97a3758b1ee74968ba3de1c520ca1598458. Thanks @michael-simons !