Need help configure keycloak with spring boot? This is what you need.
Create an user To create an user in Solr, first, you need to enable authentication plugin by creating a file named security.json under /var/solr/data. Enter into your Solr environment (docker or command line where you have Solr installed) and execute the following command: This command creates the security.json file at the correct location and also… Continue reading Top Useful Copy-Paste Commands For Apache Solr
Having 403 Forbidden when creating use via the API with Keycloak? Here is the fix.
So recently I need to set up a quick project to store the results of my crawler in a database. Previously, I would use JDBC for this job. However, with the recent knowledge of Hibernate, why don’t I give it a go? In this post, I’m going to show you how you can use Hibernate… Continue reading Using Hibernate In Standalone App (without Spring) using MariaDB
Recently I had to write a bash script to truncate all tables on a test database server. Using pgadmin is a real pain since I have at lot of tables and databases. In addition, I need to do this quite frequently. And I also didn’t want to install postgres on my machine. The requirement is… Continue reading Quering PostgreSQL with Docker
A simple javafx project that let you build a simple web server to server static content
JavaFX is a great tool to quickly deploy desktop applications. However, the setup is always a pain for me, especially after JDK8, you need to download JavaFX SDK separately. I create this JavaFX starter project to help myself and people who want to start working with JavaFX without going through the pain of setting up.… Continue reading JavaFX Starter Project – Quickly create and run
Keycloak is quite a nice tool to handle user authentication and authorization. Both Keycloak and HAProxy are free so you can easily setup an authenication & authorization server very quickly and free (hosting is not free though :)). With the help of Docker, it will take a few minutes (less than 10) for you to… Continue reading Configure SSO Server With Keycloak, HAProxy & Docker
Using events to pass messages in EJB can be an useful tool to simplify your business logic. Let’s learn how to fire and listen to events in EJB. Create and listen to simple events Let’s imagine that we have just opened a store and when someone visit our shop, we will have some fireworks. So… Continue reading Events In EJB Tutorial With Quarkus
So recently I set up a Quarkus project to build some APIs on my new computer, which had JDK 8 installed. When I ran the command: I got the following error: In short, the error complained that in the pom.xml file, I set the target release to version 11: However, Maven couldn’t find JDK version… Continue reading [Fix] Git Bash Java: invalid target release: 11