Proj (38) 썸네일형 리스트형 가게 정보 관련 RequestDto 가게 정보에 필요했던 Request 클래스는 다음과 같다. - StoreReq - StoreHygradeReq - UserCurReq 이 중 하나인 StoreReq를 살펴보면 다음과 같다.@Data@AllArgsConstructor@ToString@Builderpublic class StoreReq { private String storeName; //store 이름 private int zipCode; //우편번호 private String roadAddr; //도로명주소 private String lotAddr; //지번주소 private double wgs84Lat; //위도 private doub.. Hello, Refactoring! 대학교 졸업 프로젝트에서 아래의 프로젝트를 진행했다.https://github.com/TheperZ/a-Dream-Leaf GitHub - TheperZ/a-Dream-LeafContribute to TheperZ/a-Dream-Leaf development by creating an account on GitHub.github.com 졸업을 하고 공부를 더 하고, 프로젝트를 진행하다 보니 이 때의 코드는 "돌아는 가는" 코드라는 생각이 들었다. 대표적으로 드는 생각은 다음과 같았다. 1. 대용량 데이터 저장 위 데이터는 아동급식카드 가맹점 api의 head 부분이다. 프로젝트 발표 한 달 전 해당 api가 업데이트되면서 11,000개 가량이었던 카드가맹점 데이터가 15배 가량 증가하였다. 이에 .. 고객센터 Q&A crud 구현 0. Request @Getter public class ServiceCenterQnaReq { private String title; private String type; private String content; private boolean isSecret; } 해당 요청을 받아 저장 및 수정 작업을 수행한다. 1. 컨트롤러 @RestController @RequiredArgsConstructor @RequestMapping("/service-qna") public class ServiceCenterQnaController { private final ServiceCenterQnaService serviceCenterQnaService; @PostMapping public ResponseEntity .. 로그인 구현 1. SecurityConfig @Configuration @EnableWebSecurity public class SecurityConfig { @Bean public SecurityFilterChain filterChain(HttpSecurity http) throws Exception { http .authorizeHttpRequests((auth) -> auth //모든 경로에 대하여 권한을 부여->이후 수정 필요 /* .requestMatchers("/**").permitAll()*/ .anyRequest().authenticated()) .formLogin(formLogin -> formLogin //로그인 페이지 지정 .loginProcessingUrl("/login") .usernamePa.. 회원가입 개발 및 간단한 리팩토링 1. 회원가입 폼 클래스 @Getter public class SignupBody { @NotBlank private String name; @NotBlank private String userId; @NotBlank private String password; @NotBlank private LocalDate birth; @NotBlank private Gender gender; //학생일 경우 필요한 필드 @NotBlank private int grade; @NotBlank private String line; @NotBlank private String school; @NotBlank @Email private String email; @NotBlank private String phone; @No.. Hello Spring Security 1. build.gradle 설정 설정 후 localhost:8080을 접속하면 다음과 같이 뜬다 이는 스프링 시큐리티를 사용하기로 한 순간부터 모든 페이지에 접근 시 인증이 필요하도록 설정되기 때문이다. 일단 기초 설정이 목표이므로 이 기능을 꺼보자 package sideproject.webClass.config; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.security.config.annotation.web.builders.HttpSecurity; import org.springframework.. 이전 1 2 3 4 5 다음