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: |

Start with a fresh view of investing strategy. The combination of risks and fads this quarter looks to be topping. That means the future is ready to move in.Likely, there will not be a wholesale shift. Company actions will aim to benefit from economic growth, inflationary pressures and a return of market-determined interest rates. In turn, all of that should drive the stock market and investment returns higher.

Importantly, that investor viewpoint is not new. It cycles in when conditions are right (and vice versa). It also brings the ineffective warnings of an overpriced market with it.Looking toward a good 2022 stock market, there is no apparent reason to expect these issues to change.

JavaRocks from ar


Telegram JavaRocks
FROM USA