You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
DATAREST-994 - Fixed two argument constructor of RepositoryRestHandlerMapping.
Repositories in RepositoryCorsConfigurationAccessor may be null now. findCorsConfiguration returns null when no repositories are provided.
Original pull request: #257.
Copy file name to clipboardExpand all lines: spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/RepositoryRestHandlerMapping.java
+10-10Lines changed: 10 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
/*
2
-
* Copyright 2012-2016 the original author or authors.
2
+
* Copyright 2012-2017 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -55,7 +55,7 @@
55
55
* {@link org.springframework.data.repository.Repository} is exported under that URL path segment. Also ensures the
56
56
* {@link OpenEntityManagerInViewInterceptor} is registered in the application context. The OEMIVI is required for the
57
57
* REST exporter to function properly.
58
-
*
58
+
*
59
59
* @author Jon Brisbin
60
60
* @author Oliver Gierke
61
61
* @author Mark Paluch
@@ -75,7 +75,7 @@ public class RepositoryRestHandlerMapping extends BasePathAwareHandlerMapping {
75
75
/**
76
76
* Creates a new {@link RepositoryRestHandlerMapping} for the given {@link ResourceMappings} and
77
77
* {@link RepositoryRestConfiguration}.
78
-
*
78
+
*
79
79
* @param mappings must not be {@literal null}.
80
80
* @param config must not be {@literal null}.
81
81
*/
@@ -102,8 +102,8 @@ public RepositoryRestHandlerMapping(ResourceMappings mappings, RepositoryRestCon
Copy file name to clipboardExpand all lines: spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/RepositoryCorsConfigurationAccessorUnitTests.java
Copy file name to clipboardExpand all lines: spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/RepositoryRestHandlerMappingUnitTests.java
+6-1Lines changed: 6 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -42,7 +42,7 @@
42
42
43
43
/**
44
44
* Unit tests for {@link RepositoryRestHandlerMapping}.
45
-
*
45
+
*
46
46
* @author Oliver Gierke
47
47
* @author Greg Turnquist
48
48
*/
@@ -212,4 +212,9 @@ public void rejectsUnexpandedUriTemplateWithNotFound() throws Exception {
0 commit comments