码迷,mamicode.com
首页 > 其他好文 > 详细

股票数据处理

时间:2019-09-24 14:17:01      阅读:84      评论:0      收藏:0      [点我收藏+]

标签:sina   mapping   pre   spl   ppi   ping   i++   for   map   

对股票数据进行预处理:

@RestController
@RequestMapping("/SharesController")
public class SharesController {

    @RequestMapping("/getData")
    public String getData() {
        String result1= HttpUtil.get("http://hq.sinajs.cn/list=sh601006");
        System.out.println("截取前 :");
        System.out.println(result1);
        String[] strings = StrUtil.splitToArray(result1, ‘,‘);
        String hzy = "";
        int i = 0;
        for (String string : strings) {
            hzy += "[" + i + "]" + string + "\n";
            i++;
        }
        return hzy;
    }

}

  待加:

股票数据处理

标签:sina   mapping   pre   spl   ppi   ping   i++   for   map   

原文地址:https://www.cnblogs.com/yang101/p/11577769.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!