Spring (day-4)

김성국·2023년 5월 7일
0
post-custom-banner

1.Customer테이블

01.회원가입(고객용)

■ Member.dto

■ join.html

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <h3>고객용 회원가입화면</h3>
    <form th:action="@{/customer/join.do}" method="post">
        아이디 : <input type="text" name="id" autofocus/><br/>
        암호 : <input type="text" name="password" value="a"/><br/>
        이름 : <input type="text" name="name" value="가나다"/><br/>
        나이 : <input type="number" name="age" value="11"/><br/>
        권한(변경x)<input type="text" name="role" value="CUSTOMER" readonly/><br/>
        <input type="submit" value="회원가입"/>    
    </form>
</body>
</html>

■ CustomerController.java

Mapper 와 mapper.xml

02.로그인(고객용)

post-custom-banner

0개의 댓글