工业级运维app手机api
沈斌
2018-02-26 a4f11cd94cb83dc59f4b9fe1871ec1f9a1b19b46
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.TypeReference;
import com.moral.monitor.listener.message.Captcha;
import com.taobao.api.ApiException;
import org.springframework.context.support.ClassPathXmlApplicationContext;
 
import java.util.Map;
 
public class Test {
 
    public static void main(String[] args) throws ApiException {
 
        new ClassPathXmlApplicationContext("rabbitmq.xml");
 
//        String message = "{\"mac\":\"898602b8191630065889\",\"time\":1509008923461,\"ver\":2,\"e1\":66,\"e2\":70,\"e3\":7839,\"e4\":20,\"e5\":0,\"e6\":59,\"e7\":23,\"e8\":19.96,\"e9\":0,\"e10\":0,\"e11\":0,\"e12\":28,\"e13\":45,\"e14\":0,\"e15\":0,\"e16\":0,\"e17\":0.004,\"e18\":0,\"e19\":487,\"warn\":\"00000001\"}";
//        Map<String, String> msgData = JSON.parseObject(message, new TypeReference<Map<String, String>>() {});
//        System.out.println(msgData.get("e1").getClass());
 
        //Captcha.captcha("15950198162", "123456");
    }
}