Telegram Group & Telegram Channel
Вопрос с собеседования

Чем @Component, @Service и @Repository отличаются друг от друга?

Ответ: Все три аннотации создают Spring-бин, но:
▶️ @Component – универсальная аннотация для любых бинов
▶️ @Service – указывает, что класс содержит бизнес-логику
▶️ @Repository – используется для DAO-слоя, добавляет обработку SQL-исключений

tags: #собеседование

👉 Java Rocks | #собеседование
Please open Telegram to view this post
VIEW IN TELEGRAM



tg-me.com/javarocks/198
Create:
Last Update:

Вопрос с собеседования

Чем @Component, @Service и @Repository отличаются друг от друга?

Ответ: Все три аннотации создают Spring-бин, но:
▶️ @Component – универсальная аннотация для любых бинов
▶️ @Service – указывает, что класс содержит бизнес-логику
▶️ @Repository – используется для DAO-слоя, добавляет обработку SQL-исключений

tags: #собеседование

👉 Java Rocks | #собеседование

BY JavaRocks


Warning: Undefined variable $i in /var/www/tg-me/post.php on line 283

Share with your friend now:
tg-me.com/javarocks/198

View MORE
Open in Telegram


JavaRocks Telegram | DID YOU KNOW?

Date: |

A project of our size needs at least a few hundred million dollars per year to keep going,” Mr. Durov wrote in his public channel on Telegram late last year. “While doing that, we will remain independent and stay true to our values, redefining how a tech company should operate.

Tata Power whose core business is to generate, transmit and distribute electricity has made no money to investors in the last one decade. That is a big blunder considering it is one of the largest power generation companies in the country. One of the reasons is the company's huge debt levels which stood at ₹43,559 crore at the end of March 2021 compared to the company’s market capitalisation of ₹44,447 crore.

JavaRocks from nl


Telegram JavaRocks
FROM USA