Archives mensuelles : octobre 2019

Spring Boot 2 actuator

pom.xml <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-actuator</artifactId> </dependency> application.properties By default, only health,info,metrics are enabled. To enable all others : management.endpoints.web.exposure.include=* Actuators /beans : Displays a complete list of all the Spring beans in your application. /cache : Exposes available caches. /configprops : … Continuer la lecture

Publié dans Non classé | Laisser un commentaire

Apache as reverse proxy (AJP module) with Spring Boot

AJP as reverse proxy without SSL In Spring Boot 2.1 (it should also work in some earlier versions), we can enable the AJP connector such as :  import org.apache.catalina.connector.Connector; import org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory; import org.springframework.boot.web.server.WebServerFactoryCustomizer; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.Profile;   … Continuer la lecture

Publié dans Non classé | Laisser un commentaire

Apache 2.4 on Ubuntu

Foreword I precise 2.4 because major as well minor versions matter in Apache 2 configuration. If you don’t use Apache 2.4, don’t go further. The installation Apache 2 is in the default packages repositories of Ubuntu. So to install the default … Continuer la lecture

Publié dans Non classé | Laisser un commentaire

Jenkins

Modify the logging configuration Warn : Jenkins relies on java.util.logging. Beware of level to specify : https://docs.oracle.com/javase/7/docs/api/java/util/logging/Level.html For direct OS installations, modify the script that run jenkins to set a system property when the JVM is run : -Djava.util.logging.config.file=/var/jenkins_home/logging.properties For … Continuer la lecture

Publié dans Non classé | Laisser un commentaire