강의

멘토링

커뮤니티

Inflearn Community Q&A

devrootree's profile image
devrootree

asked

Yoon Jae-seong's introductory course through hands-on experience for Spring Framework developers

9th Lecture: Bean Lifecycle

강의 시간 15:45~ 질문있습니다.

Resolved

Written on

·

175

0

<?xml version="1.0" encoding="UTF-8"?>

<beans xmlns="http://www.springframework.org/schema/beans"

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xsi:schemaLocation="http://www.springframework.org/schema/beans

  http://www.springframework.org/schema/beans/spring-beans.xsd"

default-init-method="default_init"

default-destroy-method="default_destroy">

질문)

default method 들은 꼭 맨위에 달아줘야하는건가요?

javaspring

Answer 1

0

nury님의 프로필 이미지
nury
Instructor

default 들은 bean에 개별적으로 설정하지 않을 경우 일괄 적용 시키는 것이므로 beans 태그에 작성해주셔야 합니다.

devrootree's profile image
devrootree

asked

Ask a question