title: spring does not reginase "redirect:/path" returning a simple string
body: <p>The redirect just returns a simple string. It does not recognise the redirect.
  The response just print "redirect:/getUser/"<br>
  Can you help me?
  thanks already.</p>
  
  <p><a href="https://i.stack.imgur.com/XP89x.png" rel="nofollow noreferrer">the return should be the list of user with the new user added</a></p>
  
  <pre><code>@Slf4j
  @RestController
  public class UserController {
  
      @Autowired
      UserService userService;
  
      @GetMapping(value = "/getUser", produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
      public List&lt;UserDTO&gt; getUsers() throws Exception {
          List&lt;UserDTO&gt; oListUsers = new ArrayList&lt;UserDTO&gt;();
  
          try {
              oListUsers = userService.findAll();
  
          } catch (Exception ex) {
              log.error("Error getUsers. Cause: " + ex.getMessage());
              throw new Exception("Data can not be retrieved. Cause: " + ex.getMessage());
          }
  
          return oListUsers;
      }
  
      @PostMapping("/createUser")
      public String createUser(@Valid @RequestBody UserDTO newUser) throws Exception {
  
          try {
              userService.save(newUser);
          } catch (Exception ex) {
              log.error("Error createUser. Cause: " + ex.getMessage());
              throw new Exception("Data can not be save. Cause: " + ex.getMessage());
          }
  
          return "redirect:/getUser/";
      }
  }
  </code></pre>