Skip to content

Instantly share code, notes, and snippets.

Created December 16, 2018 20:14
What would you like to do?
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
public class AiMainAppApplication {
public static void main(String[] args) {, args);
class MessageRestController {
@Value("${message:Hello from local}")
private String message;
String getMessage() {
return this.message;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment