Page 5
Video: Install OpenAPI Generator CLI and Generate Your First Server
Deque in Java
Interface Deque (short for Double-Ended Queue) in Java is an interface that defines a data structure that allows us to add or remove elements at the front or rear: This Deque interface extends from the Queue interface and it has 2 main implementations: ArrayQueue and… Read More
Switch statement in Java – Part 2
In the previous tutorial, I introduced you to the basic knowledge of the switch statement in Java. In this tutorial, I will talk more about the new features that Java supports from version 14 onwards! Switch from Java 14 When working with a switch statement,… Read More
Install and generate source code for OpenAPI specs using OpenAPI Generator CLI
After you define API specs using OpenAPI, to implement these APIs using the programming language you are working with, you can use the Open API Generator CLI tool at https://github.com/OpenAPITools/openapi-generator to generate source code for that language. All we have left to do is add… Read More
Install MongoDB and Mongo Express using Docker Compose
I have guided you on how to install the MongoDB server on Windows and macOS in previous tutorials. Using Docker Compose to install the MongoDB server will make everything much easier. In this tutorial, I will guide you on how to install the MongoDB server… Read More
Create new queue in ActiveMQ Artemis using Artemis Console
To create a new queue in ActiveMQ Artemis, you need to create a new address first. Create a new address To create an address, in the Artemis Console page, in the Artemis menu, click on the Addresses tab! The addresses you see in the image… Read More
Register and discover other services in Consul using Spring Cloud Consul
In the previous tutorial, I showed you how to register a service to Consul using the Consul API. If your application uses Java and Spring framework, you can also do this using Spring Cloud Consul. We can also discover information about other services using this… Read More
Register service with Consul using Consul API
There are many ways to register a service with Consul such as using a configuration file, using Consul API, … In this tutorial, I will guide you how to use Consul API to register a service with Consul! First, I will create a simple service… Read More
Install Cassandra using Docker Compose
You can use the official Docker Image of Cassandra at https://hub.docker.com/_/cassandra to install it using Docker Compose. The contents of my Docker Compose file are as follows:
|
1 2 3 4 5 6 7 8 9 10 11 |
services: cassandra: image: cassandra volumes: - ./cassandra_data:/var/lib/cassandra ports: - 7001:7000 networks: huongdanjava: driver: bridge |
The directory containing Cassandra data inside the container is /var/lib/cassandra, you should mount it outside like me… Read More




