This project uses a the fetch function to get and post data to a servlet.

You can compile this into a directory and a .war file by executing this command:

mvn package

Learn more at HappyCoding.io/tutorials/java-server/post.