Here is an annotated list of security guidelines for your REST APIs when you are developing and testing them, including proper authorization, input validation, and output encoding.
ScheduledService lets you execute the same task a regular intervals and can even restart itself in the event of a failure, making it a good tool to have in the box.
If you're looking to get started with Docker, these tips will keep your Dockerfile up to snuff. Pin your dependencies, consider the order of your statements, and clean up.
Creating your own application context hierarchy can allow you, should you need to, provide different ports with different endpoints to give you some customization.
The Decorator Pattern is useful, but the stacking of Decorators can make your code hard to read. Combine the Builder and Decorator patterns for more synergy.
The Strategy pattern allows us to dynamically swap out algorithms at runtime, and the Factory pattern allows us to create objects as needed. See the synergy between them.
Forget the cloud, it's time to go serverless. Using AWS Lambda and API Gateway can reduce costs and overhead, and it's easy to get your Spring Boot app running on it.
A common approach to cloud migration is to simply port material to the cloud, which is not always the best decision, considering the complexity of modern apps.
If you're working with the Builder Pattern, you might find your relations growing complex. The NestedBuilder class lets proxies serve as parents and children at the same time.
If you’re looking to load your full app configuration and use MockMVC, you should consider @SpringBootTest combined with @AutoConfigureMockMvc rather than @WebMvcTest.