Sample demonstrating use of Spring 3.1's 'bean definition profiles' feature with @Configuration classes
Java Shell Groovy
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src
.gitignore
.springBeans
README
build.gradle Add automatic Maven POM generation Feb 11, 2011
gradlew Various Feb 8, 2011
gradlew.bat
pom.xml

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