package com.tofly.auth.controller;

import com.tofly.common.oauth.util.SecurityUtils;
import org.springframework.security.core.userdetails.User;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Administrator
 * @date 2019/9/18  16:48
 */
@RestController
public class MytestController {

    @RequestMapping("/test")
    public User test(){
        return SecurityUtils.getUser();
    }
}
