Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Sample demonstrating use of Spring 3.1's 'bean definition profiles' feature with @Configuration classes
Java Shell Groovy
Branch: master

Merge pull request #1 from hennr/patch-1

allow anonymous git cloning
latest commit 436d4a9c21
@cbeams cbeams authored
Failed to load latest commit information.
src Explicitly register all @Configuration classes
.gitignore Add automatic Maven POM generation
.springBeans Various
README Update README
build.gradle Add automatic Maven POM generation
gradlew
gradlew.bat Various
pom.xml Regenerate pom

README

For those familiar with Git:

    git clone git://github.com/cbeams/spring-3.1-profiles-java.git

Or if you prefer using Subversion:

    svn co http://svn.github.com/cbeams/spring-3.1-profiles-java.git spring-3.1-profiles-java.git

Once checked out, you can build from the command line using either Gradle or
Maven.  If you're new to Gradle, don't worry -- there's nothing for you to
install.  Simply use the 'gradlew' (or 'gradlew.bat' on windows) script within
the root directory of the project:

    >$ ./gradlew build

And the following will give you a list of all available tasks:

    >$ ./gradlew tasks

If necessary, this 'Gradle wrapper' script will download a distribution of
Gradle for you.

Generate project metadata appropriate to your IDE with

    >$ ./gradlew eclipse
        - or -
    >$ ./gradlew idea


If you prefer Maven, you can simply type:

    >$ mvn test

If you're using an IDE that supports Maven-based projects, you can import the
project directly from its POM.  Otherwise, generate IDE metadata with

    >$ mvn eclipse:eclipse
        - or -
    >$ mvn idea:idea
Something went wrong with that request. Please try again.