Fix typos in documentations.
Fix typos in READMEs, javadoc, comments and code. Original pull request #642
This commit is contained in:
committed by
Jens Schauder
parent
1aec184ff0
commit
ce994f9ea0
@@ -27,7 +27,7 @@ import org.springframework.data.projection.ProjectionFactory;
|
||||
import org.springframework.data.projection.SpelAwareProxyProjectionFactory;
|
||||
|
||||
/**
|
||||
* Test cases showing the programatic use of a {@link ProjectionFactory}.
|
||||
* Test cases showing the programmatic use of a {@link ProjectionFactory}.
|
||||
*
|
||||
* @author Oliver Gierke
|
||||
* @author Divya Srivastava
|
||||
|
||||
@@ -48,7 +48,7 @@ public class Application {
|
||||
}
|
||||
|
||||
/**
|
||||
* Pre-load the system with employees and items.
|
||||
* Preload the system with employees and items.
|
||||
*/
|
||||
public @PostConstruct void init() {
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# Spring Data REST - Starbucks example
|
||||
|
||||
This sample app exposes 10843 Starbucks coffee shops via a RESTful API that allows to access the stores in a hypermedia based way and exposes a resource to execute geo-location search for coffee shops.
|
||||
This sample app exposes 10843 Starbucks coffee shops via a RESTful API that allows to access the stores in a hypermedia based way and exposes a resource to execute geolocation search for coffee shops.
|
||||
|
||||
## Quickstart
|
||||
|
||||
|
||||
@@ -36,7 +36,7 @@ import org.springframework.data.mongodb.core.index.IndexResolver;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
/**
|
||||
* Component initializing a hand full of Starbucks stores and persisting them through a {@link StoreRepository}.
|
||||
* Component initializing a handful of Starbucks stores and persisting them through a {@link StoreRepository}.
|
||||
*
|
||||
* @author Oliver Gierke
|
||||
* @author Mark Paluch
|
||||
@@ -65,7 +65,7 @@ public class StoreInitializer {
|
||||
|
||||
/**
|
||||
* Reads a file {@code starbucks.csv} from the class path and parses it into {@link Store} instances about to
|
||||
* persisted.
|
||||
* be persisted.
|
||||
*
|
||||
* @return
|
||||
* @throws Exception
|
||||
|
||||
@@ -18,7 +18,7 @@ public class SpringDataRestCustomization extends RepositoryRestConfigurerAdapter
|
||||
}
|
||||
----
|
||||
|
||||
As you can see the `EntityLookupRegistrar` obtained via `RepositoryrestConfiguration.withCustomEntityLookup()` takes two method references.
|
||||
As you can see the `EntityLookupRegistrar` obtained via `RepositoryRestConfiguration.withCustomEntityLookup()` takes two method references.
|
||||
The first one defines the identifier mapping, the second one defines how to look up the entity using the repository.
|
||||
The customization could also be defined in a slightly more explicit way like this:
|
||||
|
||||
@@ -30,7 +30,7 @@ config.withCustomEntityLookup().
|
||||
withLookup(UserRepository::findByUsername);
|
||||
----
|
||||
|
||||
In non-Java 8 environments the method references would have to be replaced with a quite verbose anonymous inner class, so that it's probably easier to implement `EntityLookup` explixitly and declare it as Spring bean:
|
||||
In non-Java 8 environments the method references would have to be replaced with a quite verbose anonymous inner class, so that it's probably easier to implement `EntityLookup` explicitly and declare it as Spring bean:
|
||||
|
||||
[source, java]
|
||||
----
|
||||
|
||||
Reference in New Issue
Block a user