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

В чём разница между @Bean и @Component в Spring?

Ответ: @Bean используется в конфигурационных классах Spring. Он используется для непосредственного создания бина.

@Component используется со всеми классами, которыми должен управлять Spring. Когда Spring видит класс с @Component, Spring определяет этот класс как кандидата для создания bean.

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

📱 Java Developer | Чат
Please open Telegram to view this post
VIEW IN TELEGRAM
👍132🔥2



tgoop.com/java_tg/3540
Create:
Last Update:

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

В чём разница между @Bean и @Component в Spring?

Ответ: @Bean используется в конфигурационных классах Spring. Он используется для непосредственного создания бина.

@Component используется со всеми классами, которыми должен управлять Spring. Когда Spring видит класс с @Component, Spring определяет этот класс как кандидата для создания bean.

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

📱 Java Developer | Чат

BY Java Developer


Share with your friend now:
tgoop.com/java_tg/3540

View MORE
Open in Telegram


Telegram News

Date: |

Your posting frequency depends on the topic of your channel. If you have a news channel, it’s OK to publish new content every day (or even every hour). For other industries, stick with 2-3 large posts a week. The SUCK Channel on Telegram, with a message saying some content has been removed by the police. Photo: Telegram screenshot. The creator of the channel becomes its administrator by default. If you need help managing your channel, you can add more administrators from your subscriber base. You can provide each admin with limited or full rights to manage the channel. For example, you can allow an administrator to publish and edit content while withholding the right to add new subscribers. Telegram desktop app: In the upper left corner, click the Menu icon (the one with three lines). Select “New Channel” from the drop-down menu. Read now
from us


Telegram Java Developer
FROM American