Explore different ways of overriding the values of remote properties in Spring Cloud Config.
Also find me here:
Baeldung Editor
Sam Millington
Sam is a software developer from Oxford, currently working in the bioinformatics field. Sam’s areas of expertise are in all things Java, and spends his days writing multi-threaded analysis tools for biology research. He is an enthusiastic programmer, writer, and enjoys learning about new technologies. When he’s not at his desk you can find him on a climbing wall, watching Netflix or attempting to gym.
Here's what I've reviewed (so far):
Baeldung on Java
- All
- Java (13)
- Spring (9)
- Maven (6)
- Persistence (5)
- Security (4)
- Java Concurrency (4)
- Spring Boot (3)
- Java IO (3)
- Java Collections (3)
- HTTP Client-Side (3)
- Data (3)
- Testing (2)
- REST (2)
- NoSQL (2)
- Logging (2)
- Java Dates (2)
- Java Array (2)
- Core Java (2)
- Algorithms (2)
- XML (1)
- Web Services (1)
- Spring Persistence (1)
- Spring MVC (1)
- Spring Cloud (1)
- Networking (1)
- Java Web (1)
- Java String (1)
- Java Streams (1)
- Java Numbers (1)
- Java Map (1)
- Jackson (1)
- JVM (1)
- JSON (1)
- JPA (1)
- Groovy (1)
- DevOps (1)
- Cloud (1)
Persisting the Query Model
Filed under NoSQL, Spring Persistence
Look at persisting Axon framework’s query model.
Working with Tabular Data Using Tablesaw
Filed under Data
Learn about the Tablesaw library.
How to Log to the Console in Color
Filed under Logging
Find out how to add colors to console logs.
Insert Array Inside an Object in MongoDB
Filed under Java Array, NoSQL
Learn how to insert an array into a MongoDB object.
Difference Between Class.getResource() and ClassLoader.getResource()
Filed under Core Java
Learn the difference between the Class.getResource and ClassLoader.getResource methods.
Fixed Size Queue Implementations in Java
Filed under Java Collections
Learn what fixed-size queues Java has to offer and how to create a new implementation.
Clearing a StringBuilder or StringBuffer
Filed under Java String
Learn how to clear a StringBuilder or StringBuffer in Java.
Difference Between WAR and EAR Files
Filed under Java Web
Learn the difference between WAR and EAR files in Java.
Difference Between form-data, x-www-form-urlencoded and raw in Postman
Filed under Web Services
Learn the difference between form-data, raw and x-www-form-urlencoded request body types in Postman.
NoSuchFieldError in Java
Filed under Java
Let’s understand the cause behind NoSuchFieldError and how to resolve it.
Localizing Exception Messages in Java
Filed under Java
Learn how to use the getLocalizedMessage() method to provide localized exception messages
Extending Enums in Java
Filed under Java
Learn how to extend Enums in Java.
How To Get Cookies From the Apache HttpClient Response
Filed under HTTP Client-Side
Learn how to retrieve and set cookies from Apache’s HttpClient response
How to Set TLS Version in Apache HttpClient
Filed under HTTP Client-Side, Security
Learn how to set the TLS version in Apache HTTPClient
Rolling Back Migrations with Flyway
Filed under Persistence
Learn how to safely roll back migrations using Flyway.
Guide to @DynamicPropertySource in Spring
Filed under Spring
Learn how to leverage @DynamicPropertySource to manage testing with external applications.
Largest Power of 2 That Is Less Than the Given Number with Java
Filed under Algorithms, Java Numbers
Learn how to find the largest power of 2 that is less than an input number.
Introduction to keytool
Learn how to generate certificates with keytool.
What Is the Hi/Lo Algorithm?
Filed under Persistence
Learn how to the use Hi/Lo algorithm as a database identifier generation strategy.
Check If a File or Directory Exists in Java
Filed under Java IO
Learn how to check if a file or directory exists in Java
Preserving Line Breaks When Using Jsoup
Filed under XML
Learn different ways of preserving line breaks in HTML using Jsoup.
The Difference Between Cron Syntax in Linux and Spring
Filed under Spring
Learn the difference between Cron Syntax in Linux and Spring
Command-Line Tools to Find the Java Heap Size
Filed under JVM
Learn how to use command line tools to find the heap size of a running Java application.
Check If a Directory Is Empty in Java
Filed under Java IO
Learn how to check whether or not a directory is empty in Java.
Maven Offline Mode
Filed under Maven
Learn how to get Maven ready for offline mode.
Download Sources and Javadocs with Maven
Filed under Maven
Learn how to download the sources and Javadocs with Maven
Maven Logging Options
Filed under Maven
Learn how to configure logging options with Maven.
Run a Java Main Method in Maven
Learn how to run Java main method using Maven.
Adding Text to an Image in Java
Filed under Java
Learn how to add text to images in Java
Run mvn Command From Another Directory
Filed under Maven
Learn how to run mvn commands from another directory.
Refer to Environment Variables in pom.xml
Filed under Maven
Learn how to reference environment variables in a pom.xml file
When Does Java Throw UndeclaredThrowableException?
Learn what causes Java to throw an UndeclaredThrowableException
Groovy Variable Scope
Filed under Groovy
Learn about variable scope in Groovy
Why Not to Start a Thread in the Constructor?
Filed under Java Concurrency
Learn why you shouldn’t start a thread in a Java constructor
Liveness and Readiness Probes in Spring Boot
Filed under Spring Boot
Learn how to integrate Spring with Kubernetes probes
Returning the Generated Keys in JDBC
Filed under Persistence
Learn how to return auto-generated keys with only the JDBC
The Constructor Return Type in Java
Filed under Java
Learn about the constructor return type in Java
Hibernate could not initialize proxy – no Session
Filed under Persistence
Learn how to handle org.hibernate.LazyInitializationException : could not initialize proxy – no Session in Java
Casting int to Enum in Java
Filed under Java
Learn how to cast an int to an Enum in Java
Spring Security With Auth0
Learn how to integration Auth0 with Spring Security
LinkedBlockingQueue vs ConcurrentLinkedQueue
Filed under Java Collections, Java Concurrency
Learn the difference between LinkedBlockingQueue and ConcurrentLinkedQueue in Java
How to Add Proxy Support to Jsoup?
Filed under Data
Learn how to add proxy support to Jsoup
Asserting Log Messages With JUnit
Filed under Testing
Learn how to test log messages with JUnit
Log Groups in Spring Boot 2.1
Filed under Logging, Spring Boot
Learn how to group loggers with Spring Boot 2.1
Should We Close a Java Stream?
Filed under Java Streams
Ever wondered if it’s important to close a Java 8 Stream?
The Map.computeIfAbsent() Method
Filed under Java Map
Learn the intricacies of the Map.computeIfAbsent method.
Handling java.net.ConnectException
Filed under Networking
Learn how to handle java.net.ConnectException
Checksums in Java
Learn how to create checksums in Java
Prevent ApplicationRunner or CommandLineRunner Beans From Executing During Junit Testing
Learn how to prevent ApplicationRunner or CommandLineRunner beans from executing during JUnit tests.
Java ArrayList vs LinkedList
Filed under Java Collections
Learn the difference between ArrayList and LinkedList in Java
Injecting a Value in a Static Field in Spring
Filed under Spring
Learn how to inject a value into a static field in Java
Finding the Spring Version
Filed under Spring
Learn how to obtain the JDK, Java and Spring versions
Capturing a Java Thread Dump
Filed under Java Concurrency
Learn how to capture a Java thread dump
Introduction to Takes
Filed under Java
Learn about Takes – an immutable and object-oriented web framework for Java
Swagger @ApiParam vs @ApiModelProperty
Filed under REST
Learn the difference between Swagger’s @ApiParam and @ApiModelProperty
Configuring Thread Pools for Java Web Servers
Filed under HTTP Client-Side, Java Concurrency
Learn how to configure thread pools on different java web application servers
Breaking YAML Strings Over Multiple Lines
Filed under Data
Learn how to break YAML strings over multiple lines
Intro to OpenCV with Java
Filed under Java
Learn how leverage OpenCV with Java
Parsing Command-Line Parameters with Airline
Filed under Java
Learn how to parse command-line parameters with Airline
List All Available Redis Keys
Filed under Persistence
Learn how to list all of the available Redis keys
Introduction to Jsoniter
Filed under JSON
Learn how to parse JSON with Jsoniter (json-iterator)
Partitioning and Sorting Arrays with Many Repeated Entries with Java Examples
Filed under Java Array
Learn different ways to partition and sort an array containing many repeated entries.
Bitwise & vs Logical && Operators
Filed under Core Java
Learn the difference between & and && in Java
Fibonacci Series in Java
Filed under Algorithms
Learn how to generate terms of the Fibonacci series in Java
How to Implement a Quarkus Extension
Filed under DevOps
Learn how to implement a Quarkus extension
Handling URL Encoded Form Data in Spring REST
Learn how to handle URL encoded form data in Spring REST
JPA/Hibernate Persistence Context
Filed under JPA
Learn about Persistence Context with Hibernate
Guide to Eureka Self Preservation and Renewal
Filed under Cloud, Spring Boot
Learn about Eureka’s Self Preservation and Renewal features
Skipping Weekends While Adding Days to LocalDate in Java 8
Filed under Java Dates
Learn how to add days to Java 8’s LocalDate whilst skipping weekends
Reading HttpServletRequest Multiple Times in Spring
Filed under Jackson, Spring MVC
Learn how to read Spring’s HttpServletRequest multiple times
A Guide to Spring’s Open Session in View
Filed under Spring
Learn about Spring’s Open Session In View pattern
Generating Random Dates in Java
Filed under Java Dates
Learn how to generate random dates in Java
Java Scanner hasNext() vs. hasNextLine()
Filed under Java IO
Learn the differences between Java Scanner’s hasNext() and hasNextLine() methods.
Baeldung on Ops
- All
- Cloud (2)
- Docker (1)
Listing Kafka Consumers
Filed under Cloud
learn how to list Kafka consumer groups and find more information.
Listing Kafka Topics
Filed under Cloud
Learn how to list all kafka topics using the command line.
Introduction to Netflix Genie
Filed under Docker
Gain an insight into Netflix Genie