package com.rizki.mufrizal.belajar.oauth2.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@Controller
public class PageController {

    @RequestMapping(value = "/login", method = RequestMethod.GET)
    public String login() {
        return "login";
    }

}

@@ -98,16 +98,53 @@
 roller;%0A
+import org.springframework.ui.Model;%0A
 import o
@@ -198,16 +198,16 @@
 apping;%0A
-
 import o
@@ -259,16 +259,77 @@
 tMethod;
+%0Aimport org.springframework.web.bind.annotation.RequestParam;
 %0A%0A@Contr
@@ -459,11 +459,383 @@
 gin(
-) %7B
+Model model,@RequestParam(value = %22error%22, required = false)String error,%0A                        @RequestParam(value = %22logout%22, required = false)String logout)%7B%0A        if(error!=null)%7B%0A            model.addAttribute(%22error%22,%22Username dan Password Masih Salah%22);%0A        %7D%0A        if(logout!=null)%7B%0A            model.addAttribute(%22logout%22,%22Anda Berhasil Logout%22);%0A        %7D
 %0A   

Update Page Controller Custom Error