#707 - Refactor Affordances to better support Spring Data REST.
* Move Spring MVC method scanning out of the core Affordances API and into SpringMvcAffordanceBuilder to make it easy to use in Spring Data REST (where method scanning isn't needed). * Also push attributes from Affordance into AffordanceModel to centralize the details. * Certain serializers must be registered differently due to Jackson's rules of precedence given Spring Data REST needs to override them.
This commit is contained in:
@@ -19,7 +19,7 @@ import lombok.Data;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
|
||||
/**
|
||||
* Web framework-neutral representation of a web request's query parameter (http://example.com?name=foo).
|
||||
* Representation of a web request's query parameter (http://example.com?name=foo) => {"name", "foo", true}.
|
||||
*
|
||||
* @author Greg Turnquist
|
||||
*/
|
||||
@@ -28,6 +28,6 @@ import lombok.RequiredArgsConstructor;
|
||||
public class QueryParameter {
|
||||
|
||||
private final String name;
|
||||
private final boolean required;
|
||||
private final String value;
|
||||
private final boolean required;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user