Compare commits
No commits in common. "839165caf517308a593e5af8faafeb7e658dd565" and "3940459d45ecdd739b5675242e2687539fb3bf07" have entirely different histories.
839165caf5
...
3940459d45
@ -3,7 +3,6 @@ package com.interplug.qcast.biz;
|
||||
import com.interplug.qcast.config.message.Messages;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
@ -13,33 +12,11 @@ import org.springframework.web.bind.annotation.RestController;
|
||||
@RequestMapping("/api/main")
|
||||
public class MainController {
|
||||
|
||||
@Autowired Messages message;
|
||||
|
||||
@Value("${front.url}")
|
||||
private String frontUrl;
|
||||
@Autowired
|
||||
Messages message;
|
||||
|
||||
@GetMapping
|
||||
public MainTestResponse Main() {
|
||||
MainTestResponse response =
|
||||
new MainTestResponse(message.getMessage("example.msg.001"), frontUrl);
|
||||
return response;
|
||||
}
|
||||
|
||||
class MainTestResponse {
|
||||
private String message;
|
||||
private String frontUrl;
|
||||
|
||||
public MainTestResponse(String message, String frontUrl) {
|
||||
this.message = message;
|
||||
this.frontUrl = frontUrl;
|
||||
}
|
||||
|
||||
public String getMessage() {
|
||||
return message;
|
||||
}
|
||||
|
||||
public String getFrontUrl() {
|
||||
return frontUrl;
|
||||
}
|
||||
public String Main() {
|
||||
return message.getMessage("example.msg.001");
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user