게시판 만들기 2 - 아이디 중복 검사
·
BACKEND/Spring
UserMapper.xml생성 SELECT name FROM user WHERE user_id =#{user_id} UserDAO생성 package com.demo.dao; import org.mybatis.spring.SqlSessionTemplate; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Repository; @Repository public class UserDAO { @Autowired private SqlSessionTemplate sqlTemplate; public String cheakUserID(String user_id) { return sqlTe..