SpringBoot (19) 썸네일형 리스트형 18일차 - 스프링부트, 세션, thymeleaf * JACKSON에 의해 객체가 문장화(JSON)되고, 이때 인자가 없고 is 또는 get으로 시작되는 메서드의 결과도 가져간다. * return 값으로 파일의 경로를 설정했을 때는 @ResponseBody를 붙이지 않는다. @RequestScope - 매 요청마다 객체가 생성된다. Request : 서버는 요청 정보들을 보관하기 위해 HttpServletRequest 객체를 생성해 정보를 저장한다. 이 객체는 응답 결과가 전송될 때까지 유지 및 사용할 수 있다. RequestScope : Request 객체를 사용할 수 있는 범위(요청~응답) 세션 쿠키 : 클라이언트, 서버가 생성/수정/삭제 가능 => 보안 취약 세션 : 서버만 생성/수정/삭제 가능, 첫 방문 시 sessionId를 매우 길게 만들어 .. 17일차 - 스프링부트 Component, Autowired Flex 복습 http://www.flexboxdefense.com/ Flexbox Defense Your job is to stop the incoming enemies from getting past your defenses. Unlike other tower defense games, you must position your towers using CSS! www.flexboxdefense.com Component와 Autowired @Component & @Service : Ioc 컨테이너에 의해 생성, 소멸이 관리된다. @Autowired : Ioc 컨테이너에 의해 관리되는 객체와 연결시켜준다. 기존 코드 @Controller public class MemberController { privat.. 16일차 - 스프링부트 스프링부트 세팅 https://start.spring.io/ Spring Boot 3.0.4 Java 17 Dependencies : Spring Boot DevTools, Spring Web, Lombok, Thymeleaf - File > Settings > Build, Execution, Deployment > Compiler에서 Build project automatically 체크 - File > Settings > Advanced Settings > Allow auto-make ~ 체크 - File > Project Structure > SDK 17로 설정 - Lombok requires ~ > Enable annotation processing 클릭 - (필요한 경우) File > Repai.. 이전 1 2 3 다음