- Programmatic Spring configuration using Environment
- JSR 330 singleton and prototype annotations
- Spock unit tests that override Environment values with test ones
- Example of JSR 330 Provider usage
- Gradle build script that builds, tests the application and creates standalone JAR
This sample Groovy application uses a Gradle-based build system. Use the instructions below to build the sample:
git clone https://github.com/vlasenko/groovy-spring-example.git
./gradlew
java -jar build/libs/groovy-spring-example-1.0.jar Guest
This example is released under Public Domain License.