Spring MVC Template for Salesforce
I wrote up notes from a Dreamforce 12 session about setting up a Java Spring app that runs on Heroku and talks to a Salesforce org. I wanted to share the code that was generated from this session, so you can reference it from my notes. http://alexdberg.blogspot.com/2012/11/sunday-project-forcecom-spring-app-on.html
Here are some screenshots of what the very cool Eclipse Heroku Plugin looks like.
This is a template for a Spring MVC web application to work with data from Salesforce. The sample code is a dynamic CRUD application that allows users to create, read, edit, and delete any Salesforce object. It is backed by the Rich SObjects library for interactions with Salesforce.
- Clone Now
- Setup your salesforce.com OAuth Remote Access. You will then have a OAuth client key and secret
- Update the Environment variables to include the OAuth client key and secret
- Navigate to the "contacts" page and you should now be authenticated against salesforce and view/create/update/delete contacts