MainConfigController.java 1.69 KB
package org.emercit.app;

import java.util.Locale;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

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


import javax.servlet.http.*;
import javax.servlet.ServletContext;
import java.io.*;

import org.springframework.stereotype.Controller;
import org.springframework.validation.BindingResult;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import org.springframework.web.bind.annotation.RequestBody;

/**
 * Handles requests for the application home page.
 */
@Controller
@RequestMapping("api")
public class MainConfigController {
	
		/*
	@RequestMapping(value = "mainconfig/get",  method = RequestMethod.GET)
		public @ResponseBody MainConfig get() {
			
			try { 
				//return  MainConfigService.get();
			}
			catch(Exception e)
			{
				return null;
			}
		}
	
	*/
	/*
	 @RequestMapping(value="mainconfig/update" , method = RequestMethod.POST)
	    public @ResponseBody boolean update(@RequestBody MainConfig mainconfig) {
	    
				try {  
						//MainConfigService.Update(mainconfig); 
				 	return  true; 
				 }
				 catch(Exception e) { 
					 return false;
				 }
	    }
	    */

}