FAQ
How to Contribute
- Have a Spring example that you have the rights to release under an Open Source License.
- Register or Log In if already registered
- Create an example using the form below.
Create an Example
You must
Register to create an example.
How to nicely format Code
Java and XML can be nicely formatted by putting this around the example code and the way it looks formatted is just below.
<verbatim class="prettyprint">protected int x = 0;</verbatim>
protected int x = 0;
How to set a Title based on Form's Title
Field's in the form can be referenced using the
META element. The title below can be placed a the top of your example page.
---+!! <nop>%META{"formfield" name="Title"}%</nop>
How do I Layout an Example Page
This is one suggested layout that can of course be modified depending on the example. This layout uses the title and description from the form. More information than the short description can be added if necessary.
---+!! <nop>%META{"formfield" name="Title"}%</nop>
%TOC%
---++ Overview
%META{"formfield" name="Description"}%
---++ Spring Configuration
<verbatim class="prettyprint">
<bean id="string" class="java.lang.String" />
</verbatim>
---++ Code Example
<verbatim class="prettyprint">
private int foo = 0;
</verbatim>
---++ Related Links
* [[http://www.springbyexample.org][Spring by Example]]
Where is the Maven Repository for Spring by Example?
The
Spring by Example Maven Repository is located at
http://www.springbyexample.org/maven/repo for any reusable code from certain examples. Below is the repository configuration you'll need to add to you POM to register the
Spring by Example Maven Repository.
<repositories>
<repository>
<id>springbyexample.org</id>
<name>Spring by Example</name>
<url>http://www.springbyexample.org/maven/repo</url>
</repository>
</repositories>
Where do I get the Spring by Example RSS feed?
The most often changing topics are available from
http://www.springbyexample.org/feed/.