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 VehicleConfig {

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

    @Bean
    public Vehicle2Server vehicleServer() {
        return new Vehicle2Server(commIp, 5588);
    }

}
