首页>代码>基于Spring Boot、Spring Cloud、Spring Oauth2 和 Spring Cloud Netflix 等框架构建的微服务项目>/spring-boot-cloud/auth-service/src/main/java/cn/zhangxd/auth/controller/UserController.java
package cn.zhangxd.auth.controller; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; import java.security.Principal; @RestController @RequestMapping("/") public class UserController { @GetMapping(value = "/current") public Principal getUser(Principal principal) { return principal; } }

y1214435276 LV9
2024年10月22日
微信网友_7134912998903808 LV15
2024年9月13日
徐万强 LV9
2023年12月12日
iceboard LV2
2023年2月26日
LV6
2022年12月6日
2317696509 LV6
2022年9月2日
樊樊樊樊樊樊阵雨 LV18
2022年8月17日
qianyunjie LV8
2022年5月30日
x646936674 LV10
2022年3月5日
夕阳2266 LV10
2021年11月25日