You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
사용자가 편리하게 사용할 수 있도록 컨테이너는 @bean 메서드에서 반환된 객체에 대해 destroyMethod를 추론한다.
현재 이 종료 메서드 추론 기능은 close 혹은 shutdown이라는 이름의 public, no-arg 메서드로 제한되어 있다.
따라서, 객체에 close라는 이름의 메서드를 구현해놓았다면 따로 destoryMethod로 등록하지 않아도 해당 메서드를 스프링이 알아서 등록해 준다.
만약, 추론 기능을 사용하기 싫다면 destroyMethod="" 처럼 빈 공백을 지정하면 된다.
The text was updated successfully, but these errors were encountered:
사용자가 편리하게 사용할 수 있도록 컨테이너는 @bean 메서드에서 반환된 객체에 대해 destroyMethod를 추론한다.
현재 이 종료 메서드 추론 기능은
close
혹은shutdown
이라는 이름의 public, no-arg 메서드로 제한되어 있다.따라서, 객체에 close라는 이름의 메서드를 구현해놓았다면 따로 destoryMethod로 등록하지 않아도 해당 메서드를 스프링이 알아서 등록해 준다.
만약, 추론 기능을 사용하기 싫다면
destroyMethod=""
처럼 빈 공백을 지정하면 된다.The text was updated successfully, but these errors were encountered: