Etiqueta Java

Autowiring – @Qualifier

Spring has another a annotation that we can use when we have multiple beans to inject in a dependency, this annotation is @Qualifier. This annotation gives priority to one bean over others if two o more beans of the same type are found.

Creation of a Spring Project

Building a Spring project from the scratch can be a very challenging process. This is because the developers need to decide which dependencies the project will use, and then they need to build and set up the application infrastructure, such as the configuring the XML configuration file, install and configure Java, install an application server such as Tomcat, Weblogic, WebSphere, etc. This is the nightmare of the configuration because if we miss or configure something incorrectly, we will encounter numerous errors that will require a significant amount of time and effort to correct.

Spring Architecture

Besides of the Spring terminology, when we start with Spring we start to hearing about Spring boot, Spring Cloud, Spring MVC, Spring AOP, etc. and then we don't know how to start and in the worst of the case we drop it to learn it. So, we can continue explaining those modules, project, etc. so let's begin with the Spring Architecture.

Protocol Buffer aka (Protobuf)

Protocol Buffers (Protobuf) is a data serialization system developed by Google that allows you to define the structure of messages in a .proto file and generate code to efficiently serialize and deserialize data in multiple programming languages.

Java Class Structure

In Java, the basic building blocks are the Classes, when you define a class you will describe all the parts and characteristics of one of those building blocks. The use of the classes is to instantiate/create Objects. An object is a runtime instance of a class in memory.
A class has two primary elements the fields and methods that provides the functionality to the objects.
Als the class structure has the comments that plays a crucial role in describing the functionality of methods or the class itself, making them valuable for understanding and maintaining the code

Inmutability

Immutability refers to the property or characteristic of an object, value, or state that cannot change once it has been created or established.