Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
public class WelcomeController
private String serviceName;
private String sharedAttribute;
public String getServiceName() {
return "service name [" + this.serviceName + "]";
public String getSharedAttribute() {
return " [" + this.sharedAttribute + "]";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.