application/json

This commit is contained in:
2024-11-18 00:30:50 +05:00
parent 0cb2bfa1af
commit da1779f0fd

View File

@ -24,7 +24,7 @@ public class MainController {
this.dataSource = dataSource; this.dataSource = dataSource;
} }
@RequestMapping(value = "/",method = {RequestMethod.POST,RequestMethod.GET},produces = "text/json;charset=utf-8") @RequestMapping(value = "/",method = {RequestMethod.POST,RequestMethod.GET},produces = "application/json;charset=utf-8")
@ResponseBody @ResponseBody
public String index(Model model, @RequestParam(required=false,name="lng",defaultValue = "1") String language_id) { public String index(Model model, @RequestParam(required=false,name="lng",defaultValue = "1") String language_id) {
JSONObject json = new JSONObject(); JSONObject json = new JSONObject();