【发布时间】:2019-08-06 11:15:14
【问题描述】:
我是 Spring 应用程序开发的新手。
如何在 tomcat 服务器的开发阶段运行我的应用程序。
here 我可以看到最终部署的解决方案。每次我需要停止并重新开始时,我只需要在 ui 上更改一些。它杀了我。那你能帮帮我吗?
我的 pom.xml 依赖项是
org.springframework 弹簧绑定 1.0.6
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-rest</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-thymeleaf</artifactId>
</dependency>
【问题讨论】:
-
你到底在问什么?
-
我不明白。您可以像在服务器上运行任何其他可执行文件一样运行它。
-
如果您想刷新应用程序的静态内容,也许这篇文章可以帮助您 - stackoverflow.com/questions/24221922/…
-
哪里需要频繁启动和停止?日食还是服务器?
-
将 devtools 依赖项添加到您的项目中。当您进行更改时,它会自动部署项目。
标签: java spring spring-boot tomcat