Java Annotations | Spring Annotation | Stereotype Annotation | @Component

preview_player
Показать описание
Java Annotations, Spring Stereotype Annotation
@Component

Annotations are a very important part of Java in modern technologies, Most of the technologies such as Hibernate, Spring, Spring Boot, JPA, and so Many other Libraries are using annotations and making developers' life lot easy.

In this, Special Edition Series, we will discuss Java Annotations in detail, also we will discuss various annotations and how to use them.

In this tutorial, we have discussed,
Spring Custom Annotation
- @Component
- Discussed Bean creation.

Spring Boot Tutorials for beginners Series:

Comment your questions and I will try my best to provide an answer.

Like | Share | Subscribe.
Рекомендации по теме
Комментарии
Автор

One of the best tutorials on annotations, Thanks 🙏

vishalk
Автор

sir, can you plz tell me the scope of spring boot in today's world.
and where can i apply for job.
plz help if possible.

bilalbilalbilal
Автор

class Solution {
int[] DIR = new int[]{0, 1, 0, -1, 0};
public int[][] updateMatrix(int[][] mat) {
int m = mat.length, n = mat[0].length; // The distance of cells is up to (M+N)
Queue<int[]> q = new ArrayDeque<>();
for (int r = 0; r < m; ++r)
for (int c = 0; c < n; ++c)
if (mat[r][c] == 0) q.offer(new int[]{r, c});
else mat[r][c] = -1; // Marked as not processed yet!

while (!q.isEmpty()) {
int[] curr = q.poll();
int r = curr[0], c = curr[1];
for (int i = 0; i < 4; ++i) {
int nr = r + DIR[i], nc = c + DIR[i+1];
if (nr < 0 || nr == m || nc < 0 || nc == n || mat[nr][nc] != -1) continue;
mat[nr][nc] = mat[r][c] + 1;
q.offer(new int[]{nr, nc});
}
}
return mat;
}
}

kasthurishravankumarhpc
Автор

could you share the source code?
thank you

fatomahmed