Skip to content

Conversation

@jaero0725
Copy link
Contributor

회원조회
회원탈퇴

TODO : 회원 수정 진행중

@jaero0725 jaero0725 added enhancement New feature or request help wanted Extra attention is needed labels Aug 17, 2022
@jaero0725 jaero0725 added this to the Week07 milestone Aug 17, 2022
@jaero0725 jaero0725 self-assigned this Aug 17, 2022
@jaero0725 jaero0725 linked an issue Aug 17, 2022 that may be closed by this pull request
@jaero0725
Copy link
Contributor Author

jaero0725 commented Aug 17, 2022

conflict 나는 부분

package gubun.financialledger.user.controller;

import gubun.financialledger.user.auth.PrincipalDetails;
import org.springframework.security.core.annotation.AuthenticationPrincipal;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.servlet.ModelAndView;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@Controller
@RequestMapping("/login")
public class LoginController {

    @GetMapping
    public String login(@RequestParam(value = "error", required = false) String error,
                        @RequestParam(value = "exception", required = false) String exception, Model model){
        model.addAttribute("error", error);
        model.addAttribute("exception", exception);
        return "login";
    }

    @GetMapping("/")
    public ModelAndView currentUser(@AuthenticationPrincipal PrincipalDetails user) {
        ModelAndView mv = new ModelAndView();
        mv.setViewName("index");
        mv.addObject("user", user);
        return mv;
}

@CokeLee777
Copy link
Contributor

회원 조회 매핑 url을 저렇게 주시면 안돼지않나요?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request help wanted Extra attention is needed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

회원정보 조회

3 participants