| | |
| | | |
| | | import com.wf.captcha.SpecCaptcha; |
| | | import lombok.AllArgsConstructor; |
| | | import lombok.SneakyThrows; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springblade.common.cache.CacheNames; |
| | | import org.springblade.core.cache.utils.CacheUtil; |
| | |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import org.springframework.web.servlet.ModelAndView; |
| | | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import javax.servlet.http.HttpSession; |
| | | import java.time.Duration; |
| | | |
| | |
| | | /** |
| | | * 登录页面 |
| | | */ |
| | | @SneakyThrows |
| | | @GetMapping("/oauth/login") |
| | | public ModelAndView require(ModelAndView model) { |
| | | model.setViewName("login"); |
| | | return model; |
| | | public void require(HttpServletResponse response) { |
| | | response.sendRedirect("http://localhost:1888/"); |
| | | } |
| | | |
| | | /** |