简体   繁体   English

Spring Boot部署旧项目

[英]Spring Boot Deploying Old Project

I had created a spring boot project in the past, and now I am coming back to using spring boot again. 我过去曾创建过一个Spring Boot项目,现在我又回到了使用Spring Boot的过程。 However, I am running into issues when I click "run as spring project" (which informs me that my server/app has deployed as expected on port 8080 with a context root of "/"). 但是,当我单击“作为春季项目运行”时,我遇到了问题(这通知我,服务器/应用程序已按预期部署在端口8080上,上下文根为“ /”)。 When I open my browser and go to localhost:8080, it still shows up with content from my old project. 当我打开浏览器并转到localhost:8080时,它仍会显示旧项目中的内容。 Any ideas on how to fix this? 有想法该怎么解决这个吗? (PS it is not a maven issue -- I have clean/installed). (PS并非专家问题-我已清洁/安装)。

Try following these steps : 1)Stop all the Java processes in your system . 尝试执行以下步骤:1)停止系统中的所有Java进程。 2) Restart your app . 2)重新启动您的应用程序。 3) Open a new incognito window in your browser and try again . 3)在浏览器中打开一个新的隐身窗口,然后重试。

If it still doesnt work , provide more details like which version of Spring boot are you using and contents of your application.properties . 如果仍然无法正常工作,请提供更多详细信息,例如您正在使用哪个版本的Spring Boot以及application.properties的内容。 Also , are you using docker to run your apps? 另外,您是否正在使用docker运行您的应用程序?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM