debugging

Keycloak with Spring Boot #4 – Simple guide for roles and authorities

Delegating user management to Keycloak allows us to better focus on meeting the business needs of an application. However, we…

3 years ago

How to add X-XSRF-TOKEN header to Postman requests

When an API is secured against CSRF attacks, we must ensure that our clients' requests are adjusted to the security…

3 years ago

How to find and diagnose unassigned Elasticsearch shards

Identifying the unassigned shards in Elasticsearch and finding the reason why a shard can't be allocated is critical when we…

4 years ago

Angular logs the “not a known element” error as a warning

In Angular 9 and 10 we can notice that the "my-element is not a known element" error is missing when…

4 years ago

How to permanently set JAVA_HOME on Ubuntu

If a project needs the JAVA_HOME variable pointing to a particular value and this requirement is not met on our…

5 years ago

Fix “Invalid CSRF token” error – add the XSRF-TOKEN header in Angular

Angular provides a built-in support for sending requests secured with the XSRF-TOKEN header. However, it won't add the token to absolute…

5 years ago

Spring Boot API documentation with Swagger

Each API requires comprehensive documentaiton. You can generate it using Swagger for a REST API. Its clients will get standardized…

6 years ago

Show Hibernate SQL queries with values in Spring Boot

When debugging a hibernate related issue, it is useful to examine queries in the console. Check out how to print…

6 years ago