I would say if you're planning to deploy with Apache (or something else that handles the initial HTTP request) in front of your app server (tomcat?), it doesn't matter: Apache config will sort that aspect out.
If you plan to go with just your app server in production, no HTTP server in front of it, I would say it does matter, as you want to make sure your app's available at www.example.com, not example.com/appname.
By "does matter" I mean there's inherently some value in having your local server configuration the same as the production one to reduce nasty surprises in the future; you can of course configure local differently to production.
You also need to bear in mind: will you have multiple Java webapps running under a single app server? If so, plan for how you'll deploy those in production.