강의

멘토링

로드맵

Inflearn Community Q&A

wintermin3624's profile image
wintermin3624

asked

Spring Core Principles - Basic Edition

Bean Registration Initialization, Destruction Methods

destroyMethod = ("inferred")

Written on

·

271

0

추론을 통해서 close나 shutdown이 자동으로 호출되게하려면 그냥 @Bean 만 적으면 되는건가요??

@Bean(destroyMethod = "(inferred)")는 컴파일 에러가 뜨네요

oopspring

Quiz

The main reason for separating object creation and initialization in the Spring Bean lifecycle is to allow for dependency injection and other setup logic to be applied after the object has been fully constructed by the constructor.

Memory allocation speed improvement

Resolving the Dependency Injection Completion Point Issue

Constructor Overloading Support

Improve Garbage Collection Efficiency

Answer 1

2

yh님의 프로필 이미지
yh
Instructor

안녕하세요. rweteam님

네 맞습니다.

감사합니다.

wintermin3624's profile image
wintermin3624

asked

Ask a question