Rename properties
Rename `webwolf.url.*` to `webwolf.*.url` making it easier to move to a configuration class as no nested property is necessary
This commit is contained in:
@ -43,7 +43,7 @@ import java.net.URISyntaxException;
|
||||
@RestController
|
||||
public class LandingAssignment extends AssignmentEndpoint {
|
||||
|
||||
@Value("${webwolf.url.landingpage}")
|
||||
@Value("${webwolf.landingpage.url}")
|
||||
private String landingPageUrl;
|
||||
|
||||
@PostMapping("/WebWolf/landing")
|
||||
|
@ -43,7 +43,7 @@ public class MailAssignment extends AssignmentEndpoint {
|
||||
private final String webWolfURL;
|
||||
private RestTemplate restTemplate;
|
||||
|
||||
public MailAssignment(RestTemplate restTemplate, @Value("${webwolf.url.mail}") String webWolfURL) {
|
||||
public MailAssignment(RestTemplate restTemplate, @Value("${webwolf.mail.url}") String webWolfURL) {
|
||||
this.restTemplate = restTemplate;
|
||||
this.webWolfURL = webWolfURL;
|
||||
}
|
||||
|
Reference in New Issue
Block a user