사용자 도구

사이트 도구


springframework

차이

문서의 선택한 두 판 사이의 차이를 보여줍니다.

차이 보기로 링크

양쪽 이전 판 이전 판
다음 판 양쪽 다음 판
springframework [2014/07/29 15:35]
kwon37xi
springframework [2014/11/30 15:37]
kwon37xi
줄 6: 줄 6:
 ===== Offline(No Internet Connection) 상태에서의 Spring 설정 파일 ===== ===== Offline(No Internet Connection) 상태에서의 Spring 설정 파일 =====
   * [[http://stackoverflow.com/questions/1729307/spring-schemalocation-fails-when-there-is-no-internet-connection|Spring schemaLocation fails when there is no internet connection]]   * [[http://stackoverflow.com/questions/1729307/spring-schemalocation-fails-when-there-is-no-internet-connection|Spring schemaLocation fails when there is no internet connection]]
 +
 +===== 기본 Context 실행 =====
 +<code java>
 +public class Main {
 +    private static final Logger log = LoggerFactory.getLogger(Main.class);
 +    public static void main(String[] args) {
 +
 +        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext([ProjectContext].class);
 +        try {
 +
 +            UserService userService = context.getBean(UserService.class);
 +        } finally {
 +            context.close();
 +        }
 +    }
 +}
 +</code>
  
 ===== 등록된 모든 bean 목록보기 ===== ===== 등록된 모든 bean 목록보기 =====
springframework.txt · 마지막으로 수정됨: 2022/10/24 14:01 저자 kwon37xi