Class.getResource vs ClassLoader.getResource

The difference?

Hello world web application with Maven + Java + Servlets + Tomcat + IntelliJ

This is a simple walk-through.

My goal is to talk about:
  • creating a  web application with maven using an arche-type.
  • adding a Servlet to the application.
  • compiling it using maven.
  • deploying it to Tomcat and running it.