{"image_url":"https://cdn-ak.f.st-hatena.com/images/fotolife/e/excite-takayuki-miura/20231106/20231106104422.png","url":"https://tech.excite.co.jp/entry/2023/11/06/145943","categories":[],"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftech.excite.co.jp%2Fentry%2F2023%2F11%2F06%2F145943\" title=\"Spring Security\u3067\u3001Controller\u4ee5\u5916\u3067\u73fe\u5728\u30ed\u30b0\u30a4\u30f3\u4e2d\u306e\u30e6\u30fc\u30b6\u60c5\u5831\u3092\u53d6\u5f97\u3059\u308b\u65b9\u6cd5 - \u30a8\u30ad\u30b5\u30a4\u30c8 TechBlog.\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","blog_title":"\u30a8\u30ad\u30b5\u30a4\u30c8 TechBlog.","description":"\u3053\u3093\u306b\u3061\u306f\u3002 \u30a8\u30ad\u30b5\u30a4\u30c8\u682a\u5f0f\u4f1a\u793e\u306e\u4e09\u6d66\u3067\u3059\u3002 Spring Security\u3092\u4f7f\u3048\u3070\u3001Spring Boot\u3067\u7c21\u5358\u306b\u30ed\u30b0\u30a4\u30f3\u6a5f\u69cb\u3092\u4f5c\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002 \u5f53\u7136\u30ed\u30b0\u30a4\u30f3\u4e2d\u306e\u30e6\u30fc\u30b6\u60c5\u5831\u3082\u53d6\u5f97\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002 Controller\u306e\u30e1\u30bd\u30c3\u30c9\u306e\u5f15\u6570\u304b\u3089\u53d6\u5f97\u3059\u308b\u65b9\u6cd5\u304c\u4e00\u822c\u7684\u306a\u65b9\u6cd5\u306e1\u3064\u304b\u3068\u601d\u3046\u306e\u3067\u3059\u304c\u3001\u5b9f\u306f\u3082\u3063\u3068\u7c21\u5358\u306a\u65b9\u6cd5\u304c\u3042\u308a\u307e\u3059\u3002 import org.springframework.security.core.context.SecurityContextHolder; public class Sample { public User getLoggedInUser() { // \u3053\u308c\u3060\u3051\u3067\u30e6\u2026","provider_name":"Hatena Blog","author_url":"https://blog.hatena.ne.jp/excite-takayuki-miura/","type":"rich","published":"2023-11-06 14:59:43","width":"100%","version":"1.0","provider_url":"https://hatena.blog","height":"190","author_name":"excite-takayuki-miura","blog_url":"https://tech.excite.co.jp/","title":"Spring Security\u3067\u3001Controller\u4ee5\u5916\u3067\u73fe\u5728\u30ed\u30b0\u30a4\u30f3\u4e2d\u306e\u30e6\u30fc\u30b6\u60c5\u5831\u3092\u53d6\u5f97\u3059\u308b\u65b9\u6cd5"}