Two popular IDEs for Java are Eclipse IDE for Java Developers and IntelliJ IDEA
Heroku has plenty of resources for deploying Java applications.
The getting started with Java on Heroku tutorial uses Spark
Heroku also has a tutorial for using Spring MVC
Here is a Hello World example with Spring MVC.