When using Springfox you can annotate your endpoints to automatically generate OpenAPI docs for your clients.
This blogpost will show how you can prevent Springfox generating a model on an endpoint with ResponseEntity
as return type.
I’ll also cover how to prevent generating default responses.
Continue reading →
As a Spring developer we know how to load a resource in a Service. The prefixes of classpath:
and file:
are commonly used. But what if we want to load resources from a different location like a database table RESOURCE, with our own prefix db:
? The Spring Framework provides some default built-in resource implementations, which can be found in the chapter Resources in the Spring Framework Reference Guide. The URL is prefixed and handled by the corresponding ResourceLoader
(JavaDoc). If we want to load a resource from a database table RESOURCE
we have to create our own ResourceLoader which triggers on the prefix db:
.
Continue reading →