Search
 
SCRIPT & CODE EXAMPLE
 

JAVA

reponse entity as result spring controller

@RequestMapping("/handle")
 public ResponseEntity<String> handle() {
   URI location = ...;
   HttpHeaders responseHeaders = new HttpHeaders();
   responseHeaders.setLocation(location);
   responseHeaders.set("MyResponseHeader", "MyValue");
   return new ResponseEntity<String>("Hello World", responseHeaders, HttpStatus.CREATED);
 }
Comment

PREVIOUS NEXT
Code Example
Java :: make a string bean spring xml 
Java :: all loops in java 
Java :: Spring Boot user registration and login REST API 
Java :: how to take input an array in java 
Java :: java filter list of dupllicate netries 
Java :: java 8 retrieve all list from object into single list and ignore duplicates 
Java :: Determining what type of data the ArrayList will contain in java. 
Java :: java startActivity crash 
Java :: aws s3 client in java 
Java :: iterade dict javacirpt 
Java :: Java Protected Access Modifier package one 
Java :: how do I change the opacity of a JButton 
Java :: data.sql not loading in springboot 
Java :: java nested for loop 
Java :: java hashtable 
Java :: findview by id in android 
Java :: string.replace in java 
Java :: how to delete last array in java 
Java :: Java getClass() method 
Java :: compare two strings java 
Java :: spring cloud starter eureka client dependency 
Java :: java swing change label icon 
Java :: client missing intents 
Java :: como pegar o valor de um campo de texto swing 
Sql :: mysql set max connections 
Sql :: set password for postgres user ubuntu 
Sql :: turn on foreign keys check mysql 
Sql :: mysql workbench in ubuntu 14.04 
Sql :: Caused by: java.lang.IllegalStateException: Cannot load driver class: com.mysql.jdbc.Driver 
Sql :: postgres remove database 
ADD CONTENT
Topic
Content
Source link
Name
4+8 =