Uploaded image for project: 'Spring Roo'
  1. Spring Roo
  2. ROO-2505

when use "json add",json controller have wrong inner variable name in for loop

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.1.4.RELEASE
    • Fix Version/s: 1.1.5.RELEASE
    • Component/s: WEB MVC
    • Labels:

      Description

      when user json add,web controller aj generated that。look at the color red content. object name the same as the Class name.

      @RequestMapping(value = "/jsonArray", method = RequestMethod.PUT, headers = "Accept=application/json")
      public ResponseEntity<String> TAdController.updateFromJsonArray(@RequestBody String json) {
      HttpHeaders headers= new HttpHeaders();
      headers.add("Content-Type", "application/text");

      for ( TAd TAd : TAd.fromJsonArrayToTAds(json)) {
      if (TAd.merge() == null)

      { return new ResponseEntity<String>(headers, HttpStatus.NOT_FOUND); }

      }

      return new ResponseEntity<String>(headers, HttpStatus.OK);
      }

        Attachments

          Activity

            People

            Assignee:
            sschmidt Stefan Schmidt
            Reporter:
            sjbwylbs liuwenhao
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: