Commit 4221b38f09eef90158f935885031e5808b40294c

Authored by 潘钊
1 parent 2ecf6cc2

构造函数加载配置文件

src/main/java/com/bsth/gpsdata/thread/GpsBufferRefreshThread.java
... ... @@ -40,10 +40,11 @@ public class GpsBufferRefreshThread extends Thread{
40 40 //接口地址
41 41 private static String url;
42 42  
43   - static{
  43 +
  44 + public GpsBufferRefreshThread() {
44 45 url = ConfigUtil.getProp("http.gps.real.url");
45 46 }
46   -
  47 +
47 48 @Autowired
48 49 GpsRealDataBuffer gpsBuffer;
49 50  
... ...