免费视频淫片aa毛片_日韩高清在线亚洲专区vr_日韩大片免费观看视频播放_亚洲欧美国产精品完整版

打開(kāi)APP
userphoto
未登錄

開(kāi)通VIP,暢享免費(fèi)電子書(shū)等14項(xiàng)超值服

開(kāi)通VIP
Maven +Tomcat+m2eclipse的熱部署(hot deploy)
軟件版本:maven 2.2 tomcat 6.0,Eclipse 3.4
首先是建立環(huán)境,tomcat、maven、m2eclipse都不說(shuō)了,這不配好,剩下的你也別看了。都準(zhǔn)備好了,那我們就一步一步的開(kāi)始了。
1.管理自己的tomcat.
到tomcat的安裝目錄中,F(xiàn):\J2EE\apache-tomcat-6.0.24\conf在其中增加一個(gè)用戶(hù)定義,默認(rèn)是沒(méi)有用戶(hù)的,結(jié)果如下:
 
view source
< id="highlighter_817739_clipboard" title="copy to clipboard" type="application/x-shockwave-flash" width="16" height="16" src="print ?
1  < tomcat-users > 
2、 啟動(dòng)tomcat,然后訪問(wèn) http://localhost:8080/manager/html ,輸入admin/password,如果出現(xiàn)以下界面,表示tomcat一切OK:
 
3、 在maven的setting.xml中定義本機(jī)的tomcat,增加如下內(nèi)容:
view source
< id="highlighter_873006_clipboard" title="copy to clipboard" type="application/x-shockwave-flash" width="16" height="16" src="print ?
01  < servers > 
view source
< id="highlighter_360965_clipboard" title="copy to clipboard" type="application/x-shockwave-flash" width="16" height="16" src="
print ?
01  < project xmlns = "
http://maven.apache.org/POM/4.0.0
02    
03  < modelVersion >4.0.0</ modelVersion > 
04    
05  < groupId >com.world</ groupId > 
06    
07  < artifactId >demo</ artifactId > 
08    
09  < version >0.0.1-SNAPSHOT</ version > 
10    
11  < packaging >war</ packaging > 
12    
13  < build > 
14    
15  < plugins > 
16    
17  < plugin > 
18    
19  < groupId >org.codehaus.mojo</ groupId > 
20    
21  < artifactId >tomcat-maven-plugin</ artifactId > 
22    
23  < version >1.0-beta-1</ version > 
24    
25  < configuration > 
26    
27  < url >http://localhost:8080/manager/html</ url > 
28    
29  < server >tomcat</ server > 
30    
31  </ configuration > 
32    
33  </ plugin > 
34    
35  </ plugins > 
36    
37  </ build > 
38    
39  </ project > 
看清楚configuration配置,別的沒(méi)啥,<url>標(biāo)簽指明tomcat的管理器地址,<server>標(biāo)簽指明使用的是那個(gè)服務(wù)器。
6、 在項(xiàng)目中增加web.xml和一個(gè)測(cè)試文件HotDeplyTest.jsp。
HotDeplyTest.jsp內(nèi)容如下:
05  <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "
06    
07  < html > 
08    
09  < head > 
10    
11  < meta http-equiv = "Content-Type" content = "text/html; charset=GB18030" > 
12    
13  < title >Insert title here</ title > 
14    
15  </ head > 
16    
17  < body > 
18    
19  < font size = 6 color = red >< BR ></ BR > If you see this, It turns out your Hot Deploy ENV is OK!</ font > 
20    
21  </ body > 
22    
23  </ html > 
Web.xml啥內(nèi)容都沒(méi)有,隨便從別的項(xiàng)目中拷貝一個(gè)過(guò)來(lái)就成。
7、 Demo項(xiàng)目,鼠標(biāo)右鍵,Run As 選擇 Maven build,出現(xiàn)如下界面:
 
在Goals中添加點(diǎn)東西:package tomcat:redeploy
 
這句話是什么意思呢?運(yùn)行build的目的就是打包,同時(shí)部署到tomcat上。
 
然后你就可以開(kāi)始繼續(xù)蹂躪了,加入自己的精華吧!

 
本站僅提供存儲(chǔ)服務(wù),所有內(nèi)容均由用戶(hù)發(fā)布,如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請(qǐng)點(diǎn)擊舉報(bào)。
打開(kāi)APP,閱讀全文并永久保存 查看更多類(lèi)似文章
猜你喜歡
類(lèi)似文章
生活服務(wù)
分享 收藏 導(dǎo)長(zhǎng)圖 關(guān)注 下載文章
綁定賬號(hào)成功
后續(xù)可登錄賬號(hào)暢享VIP特權(quán)!
如果VIP功能使用有故障,
可點(diǎn)擊這里聯(lián)系客服!

聯(lián)系客服