This post shows how to use Spring Boot and dependency injection with Apache Camel and have Spring add routes and start and stop CamelContext automatically. The Spring way for Apache Camel In the previous post, Spring Boot – Copy File
PostgreSQL postgresql.conf And postgresql.auto.conf
SQL statements to list settings defined in postgresql.conf and overriden by postgresql.auto.conf.
Using @Conditional with @Configuration in Spring
Using @Conditional with @Configuration in Spring allows us to group @Bean objects loaded on a specific condition without resorting to using @Profile and too many @Bean/@Conditional. Requirements We used the following items for this post. Spring Boot 2.0.4.RELEASE JDK 8
PostgreSQL Terminate Active Connections
Sometimes we need to terminate active connections to a database forcefully. Doing such requires two things, determining which active connections to target and running the command to terminate them. This post shows how to terminate active connections using some SQL
Autowire beans to a List in Spring using Java
This post is about how to auto-wire a set of beans to a list in Spring. Essentially, we need to add @bean’s to an list.