DATACMNS-336 - Config classes backing @EnableSpringDataWebSupport are now public.
This commit is contained in:
@@ -30,10 +30,10 @@ import org.springframework.web.method.support.HandlerMethodArgumentResolver;
|
||||
* @author Oliver Gierke
|
||||
*/
|
||||
@Configuration
|
||||
class HateoasAwareSpringDataWebConfiguration extends SpringDataWebConfiguration {
|
||||
public class HateoasAwareSpringDataWebConfiguration extends SpringDataWebConfiguration {
|
||||
|
||||
@Bean
|
||||
public PagedResourcesAssembler<?> pagedResourcesAssembler() {
|
||||
public PagedResourcesAssembler<Object> pagedResourcesAssembler() {
|
||||
return new PagedResourcesAssembler<Object>(pageableResolver(), null);
|
||||
}
|
||||
|
||||
|
||||
@@ -37,10 +37,9 @@ import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter
|
||||
* @author Oliver Gierke
|
||||
*/
|
||||
@Configuration
|
||||
class SpringDataWebConfiguration extends WebMvcConfigurerAdapter {
|
||||
public class SpringDataWebConfiguration extends WebMvcConfigurerAdapter {
|
||||
|
||||
@Autowired
|
||||
private ApplicationContext context;
|
||||
@Autowired private ApplicationContext context;
|
||||
|
||||
@Bean
|
||||
public PageableHandlerMethodArgumentResolver pageableResolver() {
|
||||
|
||||
Reference in New Issue
Block a user