0

I am very new to Spring Boot and have the following code

public String setRedirectURL(){
    return "/redirect/" + this.statusQueryToken;
}

@RequestMapping( /* This should be the return-value of setRedirectURL */)
public URL getRedirectURL(){

}

Basically, I want the value inside of @RequestMapping to be a variable, which is the return value of setRedirectURL.

Does anyone know how to do this?

kryger
  • 12,906
  • 8
  • 44
  • 65
Nora
  • 1,825
  • 8
  • 31
  • 47
  • 1
    You should explain what your actual *problem* is as it's likely whatever you're trying to do could be achieved in some other - legal - way (gut feeling tells me `@PathVariable`). Relevant reading: http://meta.stackexchange.com/questions/66377/what-is-the-xy-problem – kryger Jul 05 '16 at 12:21
  • Thank you! I will read up on it. – Nora Jul 05 '16 at 12:22

0 Answers0