分享电脑学习 发表于 2019-4-11 11:22:59

Eclipse搭建当地动态网站环境

预备Eclipse和Tomcat完成Web容器的配置
在Eclipse中配置Tomcat (web容器)
1、选择window->show view->other->servers 下面出现了servers
https://p3.pstatp.com/large/pgc-image/87834c0885674682925f13db2bee335c
点击 no servers are available click this link to create a new server -> 选择Tomcat7(下载的是7)->点击下一步->brower(选择本地的Tomcat)->选择jre->点击finish
https://p3.pstatp.com/large/pgc-image/688e582d62964edcb42df875225207f4
https://p3.pstatp.com/large/pgc-image/7f7edbe22ed443e68aaaa6cdc0f28b40
https://p9.pstatp.com/large/pgc-image/acc369fd430a4e078e8437ed301a1e6e
新建一个项目yl
点击File->New->Other->输入web
https://p1.pstatp.com/large/pgc-image/9886d5cfe0e44401bf560e4e1190b7ce
点击next->起项目名->点击下一步
https://p3.pstatp.com/large/pgc-image/6f6ca773e97e4e2992b188cdac7ee220
点击next
https://p3.pstatp.com/large/pgc-image/af8f3b2968654b7da095676553c46d5f
选择generate web.xml deployment descriptor点击finish
https://p3.pstatp.com/large/pgc-image/adce028dbfb44d05abf0f2a78489d5da
视图选择(可选)
https://p1.pstatp.com/large/pgc-image/5901d26022044de088689d4d20d70e85
项目结构
https://p9.pstatp.com/large/pgc-image/4260a2131ac84b2b85e707b4225209b0
更改显示
Window->perspective->open perspective->java
https://p3.pstatp.com/large/pgc-image/63f37b5e36ab4cf783e7a36f1f289c0c
选择
View menu -> package presentation->hierarchical
https://p1.pstatp.com/large/pgc-image/97b75a1bf66144909a9dcce109804409
复制三个包
https://p3.pstatp.com/large/pgc-image/6e1592c1f50e4eeaae73e456f211e18d
选择项目点击右键选择properties->java build path->libraries->add external jar 和 add library
https://p3.pstatp.com/large/pgc-image/a4d0aed0be3d4de69a015e64486ffb72
将项目放到tomcat中
选择tomcat右键出现快捷菜单->add and remove->将项目移动到右面,点击完成
https://p3.pstatp.com/large/pgc-image/f61fb6e3bd4048ab94a2f171195585c1
https://p1.pstatp.com/large/pgc-image/8be8205a7645400fa5012dd131025503
安装mysql
百度搜索phpstudy->下载phpstudy->点击安装->启动之后选择mysql管理器->mysql-front->打开界面
https://p1.pstatp.com/large/pgc-image/f6cc33ecaa30457cbcde4025b618ebbb
完成库表的建立

分享电脑学习 发表于 2019-4-15 11:17:42

Eclipse搭建本地动态网站环境

徘徊遇你86279679 发表于 2020-9-7 16:12:10

你以为这样我就学会了么?太小看我了
页: [1]
查看完整版本: Eclipse搭建当地动态网站环境