首页>代码> Spring生命周期默认初始化和销毁方法通过xml配置实现>/spring-lifecycle-default-initialization-destruction-example/src/main/java/com/memorynotfound/spring/core/lifecycle/Run.java
package com.memorynotfound.spring.core.lifecycle;

import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Run {

    public static void main(String... args) throws InterruptedException {
        ConfigurableApplicationContext context = new ClassPathXmlApplicationContext("app-config.xml");
        context.close();
    }
}
最近下载更多
wsupsup  LV16 2022年8月1日
最近浏览更多
WenMeng  LV9 2024年12月2日
graceful 2023年10月18日
暂无贡献等级
444105047  LV6 2023年7月28日
daimazui951  LV1 2022年10月8日
wsupsup  LV16 2022年8月1日
981352576  LV4 2022年5月10日
最代码-宋家辉  LV61 2021年11月2日
枫丶灬  LV5 2021年6月29日
laiang zk  LV2 2021年6月16日
kwm2921944  LV10 2021年6月16日
顶部 客服 微信二维码 底部
>扫描二维码关注最代码为好友扫描二维码关注最代码为好友