Search
 
SCRIPT & CODE EXAMPLE
 

JAVA

responseentity spring boot

What is the use of ResponseEntity in Spring boot?
ResponseEntity represents an HTTP response,
including headers, body, and status. While @ResponseBody puts the return value 
into the body of the response, ResponseEntity also allows us to add headers and status code.
return ResponseEntity.status(code).build();
new ResponseEntity<>(HttpStatus.valueOf(status));
Comment

PREVIOUS NEXT
Code Example
Java :: get the max value from arrayList java and save it in int 
Java :: android get distance between two locations kotlin 
Java :: int array java 
Java :: java create new arraylist with elements 
Java :: java remove character from string after 
Java :: java button size 
Java :: get the image from camera click in android 
Java :: generatedvalue spring boot 
Java :: spring boot actuator 
Java :: copy elements of array in java 
Java :: java loop through list 
Java :: insert element into arraylist java 
Java :: android studio alert dialog box 
Java :: java get number out of string 
Java :: array sort java 
Java :: how to make a loop in java 
Java :: how to change double to int in java 
Java :: scanner.hasnext() 
Java :: java hash password 
Java :: java math power 
Java :: creating a directory using java 
Java :: replace character in string java 
Java :: java running sum of array 
Java :: how to change the value of an arraylist in java 
Java :: java 2d array length 
Java :: java substring after character 
Java :: java suppresswarnings unchecked 
Java :: stringbuffer in java 
Java :: java find if element of list in present in another list 
Java :: get string from int java 
ADD CONTENT
Topic
Content
Source link
Name
1+9 =