TrafficManageController.java 823 Bytes
package com.bsth.controller.schedule;

import com.bsth.service.TrafficManageService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * 
 * @author BSTH
 *
 */
@RestController
@RequestMapping("trmg")
public class TrafficManageController {
	
    @Autowired
	private TrafficManageService trManageService;
    
    
    @RequestMapping(value = "/setXL", method = RequestMethod.GET)
    public String setXL() throws Exception {
        try {
            return trManageService.setXL();
        } catch (Exception exp) {
            throw new Exception(exp.getCause());
        }
    }
}