Spring Social Salesforce Quickstart uses is the Spring Social Salesforce extension to show an example app connecting to Salesforce.
To use the app set the consumer key and consumer secret of a connected app in the application.properties file. The callback Url must be http://localhost:8080/connect/salesforce.
The app can be run using mvn spring-boot:run.