|
@@ -28,8 +28,7 @@ import com.alibaba.nacos.api.config.listener.Listener; |
|
|
@Slf4j |
|
|
@Slf4j |
|
|
public class DipperPositionController { |
|
|
public class DipperPositionController { |
|
|
|
|
|
|
|
|
@Autowired |
|
|
|
|
|
PositionConfig positionConfig; |
|
|
|
|
|
|
|
|
RzlAccount rzlAccount; |
|
|
|
|
|
|
|
|
@RequestMapping("/getPos") |
|
|
@RequestMapping("/getPos") |
|
|
public String getPos() throws NacosException, InterruptedException, IOException { |
|
|
public String getPos() throws NacosException, InterruptedException, IOException { |
|
@@ -45,8 +44,7 @@ public class DipperPositionController { |
|
|
// //log.info(positionId + ":" + content.positionId) |
|
|
// //log.info(positionId + ":" + content.positionId) |
|
|
// Map<String, Object> dataMap = NacosDataParserHandler.getInstance().parseNacosData(content,"yaml"); |
|
|
// Map<String, Object> dataMap = NacosDataParserHandler.getInstance().parseNacosData(content,"yaml"); |
|
|
// return dataMap == null ? "" : (String)dataMap.get(positionId); |
|
|
// return dataMap == null ? "" : (String)dataMap.get(positionId); |
|
|
|
|
|
|
|
|
return positionConfig.getHello(); |
|
|
|
|
|
|
|
|
return RzlAccount.getInstance().getHello(); |
|
|
//return "Helle world!"; //ContextLoader.getCurrentWebApplicationContext().toString(); |
|
|
//return "Helle world!"; //ContextLoader.getCurrentWebApplicationContext().toString(); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |