Latest Entries
Spring / Spring Boot

Actuator (Spring Boot)

How to set up the spring boot actuator in spring project. https://stackoverflow.com/questions/29953157/spring-boot-actuator-without-spring-boot <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-actuator</artifactId> <version>1.3.5.RELEASE</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-web</artifactId> <version>4.3.5.RELEASE</version> </dependency> @Configuration @EnableWebMvc @Import({ EndpointAutoConfiguration.class , PublicMetricsAutoConfiguration.class , HealthIndicatorAutoConfiguration.class }) public class MyActuatorConfig { @Bean @Autowired public EndpointHandlerMapping endpointHandlerMapping(Collection<? extends MvcEndpoint> endpoints) { return new EndpointHandlerMapping(endpoints); } @Bean @Autowired public EndpointMvcAdapter metricsEndPoint(MetricsEndpoint delegate) { … Continue reading

DB

MariaDB

Intallation for the Ubuntu https://mariadb.com/kb/en/mariadb/installing-mariadb-deb-files/   setting up MariaDB repositories https://downloads.mariadb.org/mariadb/repositories choose a version run the commands to install for Ubuntu, DB 10.1 sudo apt-get install software-properties-common sudo apt-key adv –recv-keys –keyserver hkp://keyserver.ubuntu.com:80 0xF1656F24C74CD1D8 sudo add-apt-repository ‘deb [arch=amd64,i386,ppc64el] http://ftp.kaist.ac.kr/mariadb/repo/10.1/ubuntu xenial main’ sudo apt update sudo apt install mariadb-server ref) https://downloads.mariadb.org/mariadb/repositories/#mirror=kaist&distro=Ubuntu&distro_release=xenial–ubuntu_xenial&version=10.1   configuring MariaDB for Remote # … Continue reading

Spring

Spring Framework – encodingFilter

in the web.xml <!– UTF-8 Filter –> <filter> <filter-name>encodingFilter</filter-name> <filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class> <init-param> <param-name>encoding</param-name> <param-value>UTF-8</param-value> </init-param> </filter> <filter-mapping> <filter-name>encodingFilter</filter-name> <url-pattern>/*</url-pattern> </filter-mapping> EOD Continue reading