亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

java - Gradle打war包后,Tomcat啟動沒報錯,卻無法正常訪問
PHP中文網(wǎng)
PHP中文網(wǎng) 2017-04-18 10:55:05
0
1
659

問題描述

基于Gradle構(gòu)建的JavaWeb項目,使用war命令打成war包。項目部署到測試環(huán)境Tomcat,Tomcat可以正常啟動沒有報錯,訪問項目時卻無法訪問。而通過eclipse的export的war包。卻沒有任何問題,可以正常訪問。測試環(huán)境和開發(fā)環(huán)境的JDK版本是一致的。有誰知道原因或有更好的解決方案嗎?

截圖演示

Gradle配置文件里面添加了插件war

通過Gradle打成war包,無法正常訪問

通過eclipse導出war包,可以正常訪問

PHP中文網(wǎng)
PHP中文網(wǎng)

認證高級PHP講師

reply all(1)
伊謝爾倫

This issue has been resolved. The reason is that when the API package of another project referenced in the project is included, the contents of the impl package are also included. Causes abnormal access to upper-level projects.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template