전체 글 (49) 썸네일형 리스트형 스프링 부트 3 백엔드 개발자 되기_14 8장 스프링 시큐리티로 로그인/로그아웃, 회원가입 구현하기 8-1 스프링 시큐리티? 인증과 인가 인증: 사용자의 신원을 입증하는 과정 ex)사용자가 사이트에 로그인할 때 누구인지 확인하는 과정 인가: 사이트의 특정 부분에 접근할 수 있는지에 권한을 확인하는 작업 ex)관리자는 관리자 페이지에 들어갈 수 있지만 일반 사용자는 못들어감 이런 권한을 확인하는 과정을 인가 인증과 인가 관련 코드를 생으로 작성하려면 시간이 많이 필요하나 스프링 시큐리티를 사용하면 간단하게 처리 가능 스프링 시큐리티: 스프링 기반 애플리케이션의 보안을 담당하는 스프링 하위 프레임 워크 보안 관련 옵션을 많이 제공 애너테이션으로 설정하기도 쉽다 CSRF 공격, 세션 고정 공격을 방어해주고 요청헤더도 보안 처리를 해줘서 개발자가 보안.. 스프링 부트 3 백엔드 개발자 되기_13 newArticle.html에 수정 등록 수정부분 빼먹어서 수정이 안됐었던 거임 스프링 부트 3 백엔드 개발자 되기_12 #게시글을 생성할땐 URL에 별도 쿼리 파라미터가 없다. 그러나 수정할 때는 URL에 ?id=123과 같이 수정할 글의 id를 쿼리 파라미터에 추가해 요청 쿼리 파라미터란 HTTP요청에서 URL의 끝에 ? 로 시작하는 키 값으로 이루어진 문자열이며 '&"로 구분 ?id=123 의 경우 키는 id 값은 123 191pg 실행테스트 했는데 수정이 안됨? 스프링 부트 3 백엔드 개발자 되기_11 Whitelabel Error Page This application has no explicit mapping for /error, so you are seeing this as a fallback. Fri Aug 11 08:38:50 KST 2023 There was an unexpected error (type=Internal Server Error, status=500). An error happened during template parsing (template: "class path resource [templates/articleList.html]") org.thymeleaf.exceptions.TemplateInputException: An error happened during templ.. 스프링 부트 3 백엔드 개발자 되기_10 Whitelabel Error Page This application has no explicit mapping for /error, so you are seeing this as a fallback. Fri Aug 11 08:38:50 KST 2023 There was an unexpected error (type=Internal Server Error, status=500). An error happened during template parsing (template: "class path resource [templates/articleList.html]") org.thymeleaf.exceptions.TemplateInputException: An error happened during templ.. 스프링 부트 3 백엔드 개발자 되기_9 스프링부트 실행하고 웹브라우저 접속했는데 There was an unexpected error (type=Internal Server Error, status=500). An error happened during template parsing (template: "class path resource [templates/example.html]") org.thymeleaf.exceptions.TemplateInputException: An error happened during template parsing (template: "class path resource [templates/example.html]") at org.thymeleaf.templateparser.markup.AbstractMarku.. 스프링 부트 3 백엔드 개발자 되기_8 mport org.springframework.ui.Model; 모델 객체는 뷰, 즉 HTML로 값을 넘겨주는 객체임 따로 생성할 필요없이 인자로 선언하기만 하면 스프링이 알아서 만들어줌 스프링 부트 3 백엔드 개발자 되기_7 3.http://localhost:8080/h2-console Whitelabel Error Page This application has no explicit mapping for /error, so you are seeing this as a fallback. Fri Aug 04 08:28:54 KST 2023 There was an unexpected error (type=Not Found, status=404). =>확인완료 application.yml 설정 spring: jpa: #전송 쿼리 확인 show-sql: true properties: hibernate: format_sql: true defer-datasource-initialization: true datasource: url: jd.. 이전 1 2 3 4 5 6 7 다음