Home  >  Q&A  >  body text

java - Why can't the browser get the found data? The background outputs normally and no error is reported.

滿天的星座滿天的星座2712 days ago554

reply all(9)I'll reply

  • PHP中文网

    PHP中文网2017-05-17 10:08:47

    If you try-catch in the method, the query should report an error

    reply
    0
  • 淡淡烟草味

    淡淡烟草味2017-05-17 10:08:47

    The background outputs normally. What is outputted? If the software does not report an error, it does not mean that there is no error. Use SYSTEM.OUT.PRINGTLN to print the results you want to output and see if the result calculation is correct

    reply
    0
  • 我想大声告诉你

    我想大声告诉你2017-05-17 10:08:47

    Look at the results of your query and what kind of results you return to the front page. According to what you said, the system outputs normally. It should be that the front page is not parsing the background data normally

    reply
    0
  • 曾经蜡笔没有小新

    曾经蜡笔没有小新2017-05-17 10:08:47

    Status code 500 is obviously an error reported in the background.

    reply
    0
  • 怪我咯

    怪我咯2017-05-17 10:08:47

    500 is probably a problem with the background. The background should not output normally

    reply
    0
  • phpcn_u1582

    phpcn_u15822017-05-17 10:08:47

    Status 500, an error was reported in the background. Is the exception information swallowed? Use try/catch to print out the exception information

    reply
    0
  • 给我你的怀抱

    给我你的怀抱2017-05-17 10:08:47

    compile group: 'com.fasterxml.jackson.core', name: 'jackson-annotations', version: '2.8.7'
    compile group: 'com.fasterxml.jackson.core', name: 'jackson-databind' , version: '2.8.7'
    compile group: 'com.fasterxml.jackson.core', name: 'jackson-core', version: '2.8.7'
    See if your project references these three packages. Sometimes, although no error is reported in your background, spring will report this json conversion exception because these packages are missing

    reply
    0
  • ringa_lee

    ringa_lee2017-05-17 10:08:47

    It’s difficult to judge your error just by looking at how you write your entity class and how you write your page

    reply
    0
  • 巴扎黑

    巴扎黑2017-05-17 10:08:47

    Did you not specify the request method

    @RequestMapping(value = "", method = RequestMethod.POST)

    reply
    0
  • Cancelreply