Reputation: 2296
Im new to spring application development.
How can i run my application while developing stage at tomcat server.
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. it kills me. So can you please help me her ??
my pom.xml dependencies are
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>
Upvotes: 0
Views: 991
Reputation: 36
Create the application with maven install gol, generating a jar, run the jar on your server with> java -jar your_jar.jar
Upvotes: 1
Reputation: 245
Add devtools dependency to your project.
<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. The benefit of this feature is the time required to verify the changes made is considerably reduced.
Upvotes: 2