To complete run, please see:Quickstart, here just lists the configuration of various scenarios
The following examples are all based on Spring configuration:Xml configuration for reference, if you do not want to use Spring, but want to be use it via the directly API, please see:API configuration