Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ramesh-lingappan/f330011e2b14463803d351797d7456fa to your computer and use it in GitHub Desktop.
Save ramesh-lingappan/f330011e2b14463803d351797d7456fa to your computer and use it in GitHub Desktop.
package com.rameshl.demo.secretmanager;
import com.rameshl.demo.secretmanager.config.AppSecrets;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
@RequiredArgsConstructor
public class HelloController {
private final AppSecrets appSecrets;
@GetMapping("/")
public String hello() {
return String.format("ID: %s", appSecrets.getGoogleClientId());
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment