package com.pwt.netty;


import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class ChargerConfig {

    @Value("${commIp}")
    private String commIp;

    @Bean
    public ChargerServer chargerServer() {
        return new ChargerServer(commIp, 3010);
    }
}
