I am trying to figure out how write a simple java program in intellij that uses Apache Tomcat (I'm using Tomcat version 9 in this case). I have been trying to follow this tutorial: https://www.youtube.com/watch?v=ThBw3WBTw9Q&t=249s
I have followed the steps and my program looks like this:
However when I try to run the program and I try to access http://localhost:8080/HelloWebApp_war_exploded/api/hello-world I get a 404 error. I can't figure out the source of this error, what could possibly be causing this problem?