Tomcat url to find resources


I'm on a team where some people use eclipse and other people intelliJ.
However, when i run my application my javascript tries to get some data using some calls to a rest service.

The URL is /projectname/resources/.... When i run it on eclipse (Local)
The URL is /resources/...      when i run it on Intellij (Local)

How can i set my intellij so the resources can be found on /projectname/resources like in eclipse?

Using Tomcat 8 server to deploy.

1 comment
Comment actions Permalink

It looks like you need to set Application context to /projectname:


Please sign in to leave a comment.