목록SPRING/chapter04_MVC (62)
WON.dev
package org.joonzis.persistence; import static org.junit.Assert.fail; import java.sql.Connection; import java.sql.DriverManager; import org.junit.Test; import lombok.extern.log4j.Log4j; @Log4j public class JDBCTests { static { try { Class.forName("oracle.jdbc.driver.OracleDriver"); } catch (Exception e) { e.printStackTrace(); } } @Test public void testConnection() { try(Connection con = DriverMa..
package org.joonzis.persistence; import static org.junit.Assert.fail; import java.io.File; import java.sql.Connection; import javax.sql.DataSource; import org.apache.ibatis.session.SqlSession; import org.apache.ibatis.session.SqlSessionFactory; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.test.co..
package org.joonzis.mapper; import java.util.List; import org.joonzis.domain.ReplyVO; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.test.context.ContextConfiguration; import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; import lombok.Setter; import lombok.extern.log4j.Log4j; @Lo..
package org.joonzis.mapper; import org.joonzis.domain.MemberVO; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.test.context.ContextConfiguration; import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; import lombok.Setter; import lombok.extern.log4j.Log4j; @Log4j @RunWith(SpringJUn..
package org.joonzis.mapper; import static org.junit.Assert.fail; import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.request; import java.sql.Connection; import java.util.List; import javax.sql.DataSource; import javax.swing.border.Border; import org.apache.taglibs.standard.lang.jstl.test.beans.PublicBean1; import org.joonzis.domain.BoardVO; import org.joonzis.domain...
package org.joonzis.mapper; import java.util.List; import org.joonzis.domain.BoardAttachVO; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.test.context.ContextConfiguration; import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; import lombok.Setter; import lombok.extern.log4j.Log4..
package org.joonzis.controller; import org.joonzis.domain.BoardVO; import org.joonzis.mapper.BoardMapperTests; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.test.context.ContextConfiguration; import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; import or..
log4jdbc.spylogdelegator.name=net.sf.log4jdbc.log.slf4j.Slf4jSpyLogDelegator
SELECT * FROM tbl_reply where bno=#{bno} order by rno desc select * from tbl_reply where rno=#{rno} INSERT INTO tbl_reply(rno, bno, reply, replyer) VALUES( seq_reply.nextval, #{bno}, #{reply}, #{replyer} ) delete from tbl_reply where rno=#{rno} update tbl_reply set reply=#{reply}, updateDate = sysdate where rno=#{rno} delete tbl_reply where bno=#{bno}