[英]Run spring boot application on server
Im new to spring application development. 我是春季应用程序开发的新手。
How can i run my application while developing stage at tomcat server. 在tomcat服务器上开发阶段时如何运行我的应用程序。
here i can see that the solution for final deployment. 在这里,我可以看到最终部署的解决方案。 i just need to change some on ui every time i need to stop and start again.
每当我需要停止并重新启动时,我只需要在ui上进行一些更改。 it kills me.
它杀死了我。 So can you please help me her ??
那你能帮我吗?
my pom.xml dependencies are 我的pom.xml依赖项是
org.springframework spring-binding 1.0.6 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>
Add devtools dependency to your project. 将devtools依赖项添加到您的项目中。
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
</dependency>
Whenever files change in the classpath, applications using spring-boot-devtools will cause the application to restart. 每当文件在类路径中更改时,使用spring-boot-devtools的应用程序都会导致应用程序重新启动。 The benefit of this feature is the time required to verify the changes made is considerably reduced.
此功能的好处是大大减少了验证所做更改所需的时间。
使用maven install gol创建应用程序,生成一个jar,然后使用> java -jar your_jar.jar在服务器上运行jar
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.