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:
.war
mvn package
Learn more at HappyCoding.io/tutorials/java-server/post.