분류 전체보기(37)
-
PaginationUtil
package com.example.totalproject.Util; import org.springframework.data.domain.Page; import org.springframework.stereotype.Component; import java.util.HashMap; import java.util.Map; //공용으로 사용할 사용자 메소드 모임 //페이지 번호 처리하는 메소드 @Component public class PaginationUtil { //페이지 정보를 가져와서 세부 페이지 값을 생성 public static Map Pagination(Page page) { Map paginationMap = new HashMap(); int currentPage = page.getNumbe..
2024.04.11 -
SecurityConfig
package com.example.totalproject.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.security.config.annotation.web.builders.WebSecurity; import org.springframework.security.config.annotation.web.configuration.EnableWebSe..
2024.04.11 -
LoginService
package com.example.totalproject.Service; import com.example.totalproject.DTO.MemberDTO; import com.example.totalproject.Entity.MemberEntity; import com.example.totalproject.Repository.LoginRepository; import lombok.RequiredArgsConstructor; import org.modelmapper.ModelMapper; import org.springframework.security.core.userdetails.User; import org.springframework.security.core.userdetails.UserDetai..
2024.04.11 -
FileService
package com.example.totalproject.Service; import org.springframework.stereotype.Service; import java.io.File; import java.io.FileOutputStream; import java.util.UUID; //파일업로드 기능을 Service //A.jpg-->c:/upload/item에 A.jpg //A.jpg-->c:/upload/item에 A.jpg 이전에 존재한 A.jpg는 삭제 //파일명의 중복을 방지하기 위해서 UUID 사용 //A.jpg-->c:/upload/item에 1234567845123456.jpg //수정 기존파일 1234567845123456.jpg 삭제 //새로운 파일을 추가 A.jpg-->..
2024.04.11 -
movice-service
package com.example.totalproject.Service; import com.example.totalproject.DTO.MovieDTO; import com.example.totalproject.Entity.MovieEntity; import com.example.totalproject.Repository.MovieRepository; import lombok.RequiredArgsConstructor; import org.modelmapper.ModelMapper; import org.springframework.beans.factory.annotation.Value; import org.springframework.data.domain.Page; import org.springfr..
2024.04.11 -
member-service
package com.example.totalproject.Service; import com.example.totalproject.DTO.MemberDTO; import com.example.totalproject.Entity.MemberEntity; import com.example.totalproject.Repository.MemberRepository; import lombok.RequiredArgsConstructor; import org.modelmapper.ModelMapper; import org.springframework.data.domain.Page; import org.springframework.data.domain.PageRequest; import org.springframew..
2024.04.11