| | |
| | | //package com.sinata.push.config; |
| | | // |
| | | //import com.sinata.push.util.echo.NettyServerController; |
| | | //import lombok.Data; |
| | | //import org.springframework.boot.context.properties.ConfigurationProperties; |
| | | //import org.springframework.context.annotation.Configuration; |
| | | //import org.springframework.stereotype.Component; |
| | | // |
| | | //import javax.annotation.PostConstruct; |
| | | // |
| | | ///** |
| | | // * @author zhibing.pu |
| | | // * @Date 2025/8/12 13:58 |
| | | // */ |
| | | //@Data |
| | | //@Configuration |
| | | //@ConfigurationProperties(prefix = "qyt") |
| | | //public class QYTConfig { |
| | | // /** |
| | | // * 出行网关接口地址 |
| | | // */ |
| | | // private String chuxingUrl; |
| | | // /** |
| | | // * 代驾网关接口地址 |
| | | // */ |
| | | // private String daijiaurl; |
| | | // |
| | | // |
| | | // @PostConstruct |
| | | // public void init() { |
| | | // NettyServerController.setQytConfig(this); |
| | | // } |
| | | //} |
| | | package com.sinata.push.config; |
| | | |
| | | import com.sinata.push.util.echo.NettyServerController; |
| | | import lombok.Data; |
| | | import org.springframework.boot.context.properties.ConfigurationProperties; |
| | | import org.springframework.context.annotation.Configuration; |
| | | import org.springframework.stereotype.Component; |
| | | |
| | | import javax.annotation.PostConstruct; |
| | | |
| | | /** |
| | | * @author zhibing.pu |
| | | * @Date 2025/8/12 13:58 |
| | | */ |
| | | @Data |
| | | @Configuration |
| | | @ConfigurationProperties(prefix = "qyt") |
| | | public class QYTConfig { |
| | | /** |
| | | * 出行网关接口地址 |
| | | */ |
| | | private String chuxingUrl; |
| | | /** |
| | | * 代驾网关接口地址 |
| | | */ |
| | | private String daijiaurl; |
| | | |
| | | |
| | | @PostConstruct |
| | | public void init() { |
| | | NettyServerController.setQytConfig(this); |
| | | } |
| | | } |