# Edc2MyspcConfig.java

    package com.mycim.server.edcmyspc;

    import com.mycim.server.edcmyspc.myspc.Edc2MyspcConverter;
    import com.mycim.server.edcmyspc.myspc.Edc2MyspcParser;
    import com.mycim.server.edcmyspc.myspc.Edc2MyspcSender;
    import com.mycim.server.spc.Edc2SpcContainer;
    import org.springframework.context.annotation.Bean;
    import org.springframework.context.annotation.Configuration;

    /**
     * @author Johnson.Wang
     * @version 6.0.0
     * @date 2019/11/8
     **/
    @Configuration
    public class Edc2MyspcConfig {

        @Bean
        public Edc2SpcContainer myspcContainer(Edc2MyspcConverter myspcConverter, Edc2MyspcParser myspcParser,
                                               Edc2MyspcSender myspcSender) {
            Edc2MyspcContainer container = new Edc2MyspcContainer();
            container.setEdc2SpcConverter(myspcConverter);
            container.setEdc2SpcParser(myspcParser);
            container.setEdc2SpcSender(myspcSender);
            return container;
        }

    }