Spring Boot 3.1's ConnectionDetails abstraction
If you've used Spring Boot for a while, you're probably familiar with setting up connection details using properties. For example, you may have used spring.datasource.url
to configure a JDBC connection. In Spring Boot 3.1 this continues to work as you'd expect, but we've changed things a bit under the hood to decouple the auto-configurations from the properties.
There's now a new ConnectionDetails
abstraction.
This interface models the concept of a connection to a remote service.
If you take a look at this interface, you'll see that it's empty.
It serves as a tagging interface, and is extended by multiple other interfaces which model the connection to a concrete remote service, e.g. RedisConnectionDetails
for connections to a Redis server or JdbcConnectionDetails
…