我是spring应用程序开发的新手。
如何在tomcat服务器上开发阶段运行我的应用程序。
here我可以看到最终部署的解决方案。我只需要改变一些在ui上,每次我需要停止和重新开始。真让我难受。所以你能帮帮我吗?
我的pom.xml依赖项是
org.springframework spring-binding 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>
发布于 2019-03-15 19:34:02
将devtools依赖项添加到项目中。
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
</dependency>
每当类路径中的文件发生更改时,使用spring-boot-devtools的应用程序都会导致应用程序重启。此功能的好处是验证所做更改所需的时间大大减少。
发布于 2019-03-15 19:43:49
使用maven install gol创建应用程序,生成jar,并在服务器上运行jar with> java -jar your_jar.jar。
https://stackoverflow.com/questions/55181511
复制相似问题