강의

멘토링

커뮤니티

인프런 커뮤니티 질문&답변

Rootree님의 프로필 이미지
Rootree

작성한 질문수

윤재성의 스프링 프레임워크 개발자를 위한 실습을 통한 입문 과정

9강 빈 객체의 생명주기

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

해결된 질문

작성

·

172

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 들은 꼭 맨위에 달아줘야하는건가요?

답변 1

0

nury님의 프로필 이미지
nury
지식공유자

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

Rootree님의 프로필 이미지
Rootree

작성한 질문수

질문하기