1、JDK "12.0.2" 下载安装及环境变量配置:
https://blog.csdn.net/weixin_43708002/article/details/99685972
2、下载Eclipse IDE for Enterprise Java Developers
https://www.eclipse.org/downloads/packages/
3、搭建tomcat:
权威的百度经验(推荐):
https://jingyan.baidu.com/article/624e74590e084834e8ba5a12.html
参考菜鸟教程
https://www.runoob.com/jsp/eclipse-jsp.html
双击 bin\startup.bat 启动 Tomcat,弹出,命令行界面,
接着我们在浏览器中输入 http://localhost:8080/,如果弹出如下界面,表示tomcat安装成功并且启动起来了:
Bug1:继续第三步的内容,当你打开你的第一个jsp文件时,中文显示的是乱码,所以把上面那个参考的程序:
<%@ page contentType="text/html;charset=UTF-8" %>
<%
out.print("菜鸟教程 : http://www.runoob.com");
%>
改成:
<%@ page contentType="text/html;charset=UTF-8" pageEncoding="GBK"%>
<%
out.print("我的第一个jsp文件,Eclipse JSP/Servlet 环境搭建参考网址 : http://www.runoob.com");
%>
正确输出:
参考:https://blog.csdn.net/qq_40587575/article/details/79818477
Bug2:
对于这一步:
要从这里打开这个菜单:
Bug3:“The origin server did not find a current representation for the target resource or is not willing to
disclose that one exists.”
上面的教程中的这一步并不能运行,打开的网页没有404错误,要运行显示这个test.jsp文件,只能这样运行:
Bug4:想登录host manager:
或者manager web
的时候报错:
401表示无权限。根据提示,我们需要在tomcat安装目录下的conf/tomcat-users.xml配置文件中增加用户角色和用户。另外,还需要修改同是tomcat安装目录下的webapps/manager/META-INF/context.xml配置文件,修改访问地址的限制。
更改之后需要输入账户,密码才能登录manager
Bug5:Tomcat无法成功启动——双击startup.bat闪退的解决办法
https://blog.csdn.net/scau_lth/article/details/83218335
上面这篇博客是用cmd把占用8080接口的程序停止,后来我才发现是我的IntelliJ IDEA占用了我的tomcat
Bug6:Tomcat无法启动——出现端口8080占用
cmd下输入命令:
netstat -ano | findstr 8080
占用这个端口的进程pid为17012:
继续输入:tasklist | findstr 17012
杀掉此进程:taskkill /pid 17012 -t -f
4、windows系统 MySQL8.0.12详细安装步骤及基本使用教程
https://blog.csdn.net/xiezhiming1234/article/details/82860339
因为我下载的是8.0.17的,我的这一步Hostname这一栏没有localhost这个字样,所以我加进去了。