Dark Horse Programmer 2021-11-12 The latest version of JavaWeb Basics Tutorial Episode 94 servlet fails to run successfully
code in blue circle
@WebServlet("/ServletDemo1")
The ones in parentheses must be the same as the class name
Dark Horse Programmer 2021-11-12 The latest version of JavaWeb Basics Tutorial Episode 96 Output post, the path in a.html must be, it is also ServletDemo4 instead of demo4
form action="/web-demo/ServletDemo4" method="post">
Meet the conditions in the picture
Tomact must be as shown in the figure
The pom.xml must be the same as the content I created in the first article. Don’t add port: 80 like in Dark Horse Programmer.
Run successfully