목록SPRING/chapter04_MVC (62)
WON.dev
package org.joonzis.security; import org.joonzis.domain.MemberVO; import org.joonzis.mapper.MemberMapper; import org.joonzis.security.domain.CustomUser; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.security.core.userdetails.UserDetails; import org.springframework.security.core.userdetails.UserDetailsService; import org.springframework.security.core.us..
package org.joonzis.security; import java.io.IOException; import java.util.ArrayList; import java.util.List; import javax.servlet.ServletException; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.springframework.security.core.Authentication; import org.springframework.security.core.GrantedAuthority; import org.springframework.security.web.a..
package org.joonzis.security; import java.io.IOException; import javax.servlet.ServletException; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.springframework.security.access.AccessDeniedException; import org.springframework.security.web.access.AccessDeniedHandler; import lombok.extern.log4j.Log4j; @Log4j public class CustomAccessDeniedHa..
package org.joonzis.mapper; import org.apache.ibatis.annotations.Insert; public interface Sample2Mapper { @Insert("insert into tbl_sample2 values(#{data})") public int insertCol2(String data); }
package org.joonzis.mapper; import org.apache.ibatis.annotations.Insert; public interface Sample1Mapper { @Insert("insert into tbl_sample1 values(#{data})") public int insertCol1(String data); }
package org.joonzis.mapper; import java.util.List; import org.joonzis.domain.ReplyVO; public interface ReplyMapper { public int insert(ReplyVO vo); // inert - 댓글 삽입 public List getList(long bno); // getList - 댓글 목록 public ReplyVO read(long rno); // read - 댓글 읽기 public int delete(long rno); // delete - 댓글 삭제 public int update(ReplyVO vo); // update - 댓글 수정 public int deleteAll(long bno);// delete..
package org.joonzis.mapper; import org.joonzis.domain.MemberVO; public interface MemberMapper { public MemberVO read(String userid); //memberid 조회 }
package org.joonzis.mapper; import java.util.List; import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Select; import org.joonzis.domain.BoardVO; import org.joonzis.domain.Criteria; public interface BoardMapper { //xml에서 mapper의 id명과 getList메소드명과 맞춰준다 //public List getList(); // 전체 데이터 조회 public List getListWithPaging(Criteria cri); //전체 데이터 조회(페이징) public void inser..
package org.joonzis.mapper; import java.util.List; import org.joonzis.domain.BoardAttachVO; public interface BoardAttachMapper { public void insert(BoardAttachVO vo); public void delete(String uuid); public List findByBno(long bno); public void deleteAll(long bno); }
package org.joonzis.domain; import java.sql.Date; import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; @Data @NoArgsConstructor @AllArgsConstructor public class ReplyVO { private long rno , bno; private String reply , replyer; private Date replyDate , updateDate; }