[Spring] 24. 회원 기초 MVC 구성개발자가 되기까지 (2023.08.16~2024.04.15)/[Spring] Basic Web2024. 1. 23. 23:39
Table of Contents
MemberController.java
package com.basicWeb.www.controller;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import com.basicWeb.www.service.MemberService;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
@Slf4j
@Controller
@RequiredArgsConstructor
@RequestMapping("/member/*")
public class MemberController {
private final MemberService msv;
}
MemberService.interface
package com.basicWeb.www.service;
public interface MemberService {
}
MemberServiceImpl.java
package com.basicWeb.www.service;
import org.springframework.stereotype.Service;
import com.basicWeb.www.repository.MemberDAO;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
@Slf4j
@Service
@RequiredArgsConstructor
public class MemberServiceImpl implements MemberService {
private final MemberDAO mdao;
}
MemberDAO.interface
package com.basicWeb.www.repository;
public interface MemberDAO {
}
memberMapper.xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"https://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.basicWeb.www.repository.MemberDAO">
</mapper>
[Spring] 24. 회원 기초 MVC 구성
(다음 게시물 예고편)
[Spring] 25. 회원가입
728x90
@rlozlr :: 얼렁뚱땅 개발자
얼렁뚱땅 주니어 개발자
포스팅이 좋았다면 "좋아요❤️" 또는 "구독👍🏻" 해주세요!