MainConfigController.java
1.69 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
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;
}
}
*/
}