Playground for testing ideas and storing useful snippets and examples.
In order to run the build and individual examples you need Java 8 or later installed. Build is managed by Gradle, with Gradle Wrapper configured so you don't need Gradle installed directly on your machine.
Simply execute ./gradlew
from the root directory (the one containing .git
directory) followed by full project path
ending with task you want to run. For example, to run tests against project mvc-controller-sharing-endpoint-with-repository
you'd execute:
./gradlew :spring:data-rest:mvc-controller-sharing-endpoint-with-repository:test
Add --info
to to the command to see more detailed output.
To list default/key tasks available in each project, execute task keyTasks
, for example:
./gradlew :spring:data-rest:mvc-controller-sharing-endpoint-with-repository:keyTasks
To discover available projects execute:
./gradlew projects
Sandbox is structured as a hierarchy of projects:
- :spring:data-rest:mvc-controller-sharing-endpoint-with-repository -
demonstrates how to plug custom Spring MVC controller so that it listens on the same endpoint as Spring Data REST
repository where calls are dispatched to one or another depending on their
Content-Type
. Uses Spring Boot, Spring Data REST, Spring MVC.
All source code in this repository is licenced to use as specified in MIT licence.
The summary of the intention for allowed use of the code from this repository:
- Feel free to use it in any form (source code or binary) and for any purpose (personal use or commercial).
- Feel free to use entire files or snippets of the code with or without modifications or simply use it as examples to inspire your own solutions.
- You don't have to state my authorship in any way and you don't have to include any specific licence.
- Don't hold me responsible for any results of using this code.
For more details of this licence see:
- The LICENCE file included in this project.
- Licence section of opensource.org.