@@ -0,0 +1,1268 @@
+package com.gescc.hedwig.controller;%0A%0Aimport javax.servlet.http.HttpServletRequest;%0Aimport javax.servlet.http.HttpServletResponse;%0A%0Aimport org.slf4j.Logger;%0Aimport org.slf4j.LoggerFactory;%0Aimport org.springframework.beans.factory.annotation.Autowired;%0Aimport org.springframework.beans.factory.annotation.Qualifier;%0Aimport org.springframework.stereotype.Controller;%0Aimport org.springframework.web.bind.annotation.RequestBody;%0Aimport org.springframework.web.bind.annotation.RequestMapping;%0Aimport org.springframework.web.bind.annotation.RequestMethod;%0Aimport org.springframework.web.bind.annotation.ResponseBody;%0A%0Aimport com.gescc.hedwig.service.SmsService;%0Aimport com.gescc.hedwig.view.ResultView;%0Aimport com.gescc.hedwig.vo.Sms;%0A%0A@Controller%0A@RequestMapping(value=%22/sms%22)%0Apublic class SmsController %7B%0A%0A%09private static Logger LOG = LoggerFactory.getLogger(SmsController.class);%0A%09%0A%09@Autowired%0A%09private SmsService service;%0A%09%0A%09@ResponseBody%0A%09@RequestMapping(method=RequestMethod.POST)%0A%09public ResultView singleSMS(HttpServletRequest req, HttpServletResponse res, @RequestBody Sms sms ) throws Exception %7B%0A%09%09LOG.info(%22Send SMS : %22 + sms.toString());%0A%09%09try %7B%0A%09%09%09service.sendSMS(sms);%0A%09%09%7D catch(Exception e) %7B%0A%09%09%09%0A%09%09%09throw e;%0A%09%09%7D%0A%09%09%0A%09%09return new ResultView(%22200%22, %22OK%22);%0A%09%7D%0A%7D

Add SmsController