SpringMVC问题
SpringMVC问题
日期:2021-04-21 11:04:07 人气:1
ResponseEntity<String>(r,HttpStatus.OK);
调用的是ResponseEntity类中的有参构造器,一般传值进去是初始化某些属性,给某些属性赋值。
得到一个该类的实例。eturn responseEntity;
就是把构造好的该类的实例返回出去给调用端。
调用的是ResponseEntity类中的有参构造器,一般传值进去是初始化某些属性,给某些属性赋值。
得到一个该类的实例。eturn responseEntity;
就是把构造好的该类的实例返回出去给调用端。