BACK-END
[MessageSystem]Controller_Class
1. JoinService insert into messageboard values(num_board.nextval,#{title},#{writer},#{filename},#{content},sysdate) select * from messageboard order by b_day desc select * from messageboard where num = #{num} delete from messageboard where num=#{num} 2. LoginService package com.smhrd.controller_class; import javax.servlet.RequestDispatcher; import javax.servlet.http.HttpServletRequest; import ja..
[MessageSystem]DataBase
1. SqlSessionManager import java.io.IOException; import java.io.Reader; import org.apache.ibatis.io.Resources; import org.apache.ibatis.session.SqlSessionFactory; import org.apache.ibatis.session.SqlSessionFactoryBuilder; public class SqlSessionManager { static SqlSessionFactory sqlSession; static { String resource="com/smhrd/database/mybatis-config.xml"; Reader reader; try { reader = Resources...
[MessageSystem]Model
1. MemberVO import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; @Data @AllArgsConstructor @NoArgsConstructor public class MemberVO { private String email; private String pw; private String phone; private String address; } 2. DAO import java.util.ArrayList; import org.apache.ibatis.session.SqlSession; import org.apache.ibatis.session.SqlSessionFactory; import co..