package com.zd.laboratory.event.handle;

import org.springframework.boot.context.event.ApplicationStartedEvent;
import org.springframework.context.ApplicationListener;

/**
 * @Author: zhoupan
 * @Date: 2021/11/23/11:20
 * @Description:
 */

//@Component
public class AppInItHandler implements ApplicationListener<ApplicationStartedEvent> {


    @Override
    public void onApplicationEvent(ApplicationStartedEvent applicationStartedEvent) {

        //初始化校区
        //校区现在系统内并没有实现对应的实体，只是一个概念，实质是个组织机构。
        //没办法为了能扩展所以现在只能将其放在配置里，读入项目缓存


    }
}
