반응형
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- Java
- nodejs
- NextJS
- Maven
- Tomcat
- pwa
- node.js
- mybatis
- MariaDB
- javascript
- security
- Push
- jenkins
- rocky9
- config
- ajax
- MSsql
- git
- popup
- SpringBoot
- PM2
- spring3
- Eclipse
- yona
- docker
- jquery
- Next.js
- centos7
- FCM
- mysql
Archives
- Today
- Total
목록버튼 (1)
ふたりで
submit 후 브라우저 버튼에 의해 뒤로 갈 경우 입력 화면 접근 막기.
# 세션에 플래그 추가하기:submit 후 세션에 특정 플래그를 추가하여 submit 했던 페이지를 보여주지 않도록 제어 하기.@GetMapping("/register")public String showRegistrationForm(HttpSession session, Model model) { if (session.getAttribute("registered") != null) { return "redirect:/login"; // 이미 가입했으면 로그인 페이지로 리다이렉트 } return "register"; // 회원가입 페이지}@PostMapping("/addUser")public String register(@ModelAttribute User user, HttpSe..
Spring
2024. 10. 29. 14:07