Partner – DBSchema – NPI EA – (tag = SQL)
DbSchema is a super-flexible database designer, which can take you from designing the DB with your team all the way to safely deploying the schema.
The way it does all of that is by using a design model, a database-independent image of the schema, which can be shared in a team using GIT and compared or deployed on to any database.
And, of course, it can be heavily visual, allowing you to interact with the database using diagrams, visually compose queries, explore the data, generate random data, import data or build HTML5 database reports.
>> Take a look at DBSchema
Partner – CAST AI – NPI EA (tag = kubernetes)
The Kubernetes ecosystem is huge and quite complex, so it’s easy to forget about costs when trying out all of the exciting tools.
To avoid overspending on your Kubernetes cluster, definitely have a look at the free K8s cost monitoring tool from the automation platform CAST AI. You can view your costs in real time, allocate them, calculate burn rates for projects, spot anomalies or spikes, and get insightful reports you can share with your team.
Connect your cluster and start monitoring your K8s costs right away:
>> FREE Kubernetes cost monitoring
Partner – MongoDB – NPI EA (tag = MongoDB) Partner – Thundra – NPI EA (tag = Jenkins)
You can get some real insight into your CI pipelines, and into your tests by using Foresight.
This includes not just the basics but some actual, actionable data like Change Impact Analysis, where we can see the changes in a PR and correlate them to test runs and test coverage to show how they affect our builds:
>> Try out Foresight in a project
In this article, we'll learn about CharacterEncodingFilter and it's usage in a Spring Boot application.
CharacterEncodingFilter is a servlet filter that helps us to specify a character encoding for requests and responses. This filter is useful when browsers do not set a character encoding or if we want a specific interpretation for requests and responses.
Let's see how we can configure this filter in a Spring Boot application.
First, let's create a CharacterEncodingFilter:
CharacterEncodingFilter filter = new CharacterEncodingFilter();
In our example, we have set the encoding as UTF-8. But, we can set any other encoding based on the requirement.
We have also used forceEncoding attribute to enforce the encoding irrespective of its presence in request from the browser. Since this flag is set as true, the provided encoding will also be applied as response encoding.
Finally, we'll register the filter with FilterRegistrationBean which provides configuration to register Filter instances as part of the filter chain:
FilterRegistrationBean registrationBean = new FilterRegistrationBean();
In non-spring boot applications, we can add this filter in the web.xml file to get the same effect.
In this article, we've described the need for CharacterEncodingFilter and seen an example of its configuration.
As always, the complete code for this article is available over on GitHub.
res – REST with Spring (eBook) (everywhere)