基于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講師
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.