[JAVA-27376] Moved article "Programmatically Restarting a Spring Boot… (#15412)
* [JAVA-27376] Moved article "Programmatically Restarting a Spring Boot Application" to spring-boot-runtime-2 module * [JAVA-27367]
This commit is contained in:
parent
9f7ec43036
commit
62c172f814
|
@ -5,3 +5,6 @@ This module contains articles about administering a Spring Boot runtime
|
|||
### Relevant Articles:
|
||||
- [Configure the Heap Size When Starting a Spring Boot Application](https://www.baeldung.com/spring-boot-heap-size)
|
||||
- [Max-HTTP-Header-Size in Spring Boot 2](https://www.baeldung.com/spring-boot-max-http-header-size)
|
||||
- [Programmatically Restarting a Spring Boot Application](https://www.baeldung.com/java-restart-spring-boot-app)
|
||||
|
||||
- More articles: [[<-- prev]](../spring-boot-runtime)
|
||||
|
|
|
@ -28,6 +28,15 @@
|
|||
<groupId>org.springframework.security</groupId>
|
||||
<artifactId>spring-security-test</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-actuator</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework.cloud</groupId>
|
||||
<artifactId>spring-cloud-starter</artifactId>
|
||||
<version>${springcloud.version}</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
|
@ -64,4 +73,7 @@
|
|||
</plugins>
|
||||
</build>
|
||||
|
||||
<properties>
|
||||
<springcloud.version>3.1.3</springcloud.version>
|
||||
</properties>
|
||||
</project>
|
|
@ -1,8 +1,8 @@
|
|||
package com.baeldung.restart;
|
||||
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.cloud.context.restart.RestartEndpoint;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
@Service
|
||||
public class RestartService {
|
|
@ -0,0 +1,7 @@
|
|||
management.endpoints.web.exposure.include=*
|
||||
management.metrics.enable.root=true
|
||||
management.metrics.enable.jvm=true
|
||||
management.endpoint.restart.enabled=true
|
||||
spring.datasource.jmx-enabled=false
|
||||
spring.jmx.enabled=true
|
||||
management.endpoint.shutdown.enabled=true
|
|
@ -4,10 +4,11 @@ This module contains articles about administering a Spring Boot runtime
|
|||
|
||||
### Relevant Articles:
|
||||
- [Shutdown a Spring Boot Application](https://www.baeldung.com/spring-boot-shutdown)
|
||||
- [Programmatically Restarting a Spring Boot Application](https://www.baeldung.com/java-restart-spring-boot-app)
|
||||
- [Logging HTTP Requests with Spring Boot Actuator HTTP Tracing](https://www.baeldung.com/spring-boot-actuator-http)
|
||||
- [Spring Boot Embedded Tomcat Logs](https://www.baeldung.com/spring-boot-embedded-tomcat-logs)
|
||||
- [Project Configuration with Spring](https://www.baeldung.com/project-configuration-with-spring)
|
||||
- [Spring – Log Incoming Requests](https://www.baeldung.com/spring-http-logging)
|
||||
- [How to Configure Spring Boot Tomcat](https://www.baeldung.com/spring-boot-configure-tomcat)
|
||||
- [CORS with Spring](https://www.baeldung.com/spring-cors)
|
||||
|
||||
- More articles: [[more -->]](../spring-boot-runtime-2)
|
||||
|
|
Loading…
Reference in New Issue