getAllData() {
+ String sql = "select * from sampleTB";
+ return template.query(sql, new BeanPropertyRowMapper<>(BoardVO.class));
+ }
+
+ public BoardVO selectOne(int sno) {
+
+ String sql = "select*from sampleTB where sno = ?";
+ return template.queryForObject(sql, new Object[] {sno}, new BeanPropertyRowMapper<>(BoardVO.class));
+ }
+
+ public int insertOne(BoardVO vo) {
+ String sql = "insert into sampleTB(title, body, writer, rdate)";
+ sql+="values(?,?,?, now())";
+ int result = template.update(sql, vo.getTitle(), vo.getBody(), vo.getWriter());
+ return result;
+ }
+}
diff --git a/st/src/main/resources/log4j2.xml b/st/src/main/resources/log4j2.xml
new file mode 100644
index 0000000..511eed3
--- /dev/null
+++ b/st/src/main/resources/log4j2.xml
@@ -0,0 +1,50 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/st/src/main/webapp/WEB-INF/spring/appServlet/servlet-context.xml b/st/src/main/webapp/WEB-INF/spring/appServlet/servlet-context.xml
new file mode 100644
index 0000000..67b5c05
--- /dev/null
+++ b/st/src/main/webapp/WEB-INF/spring/appServlet/servlet-context.xml
@@ -0,0 +1,34 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/st/src/main/webapp/WEB-INF/spring/root-context.xml b/st/src/main/webapp/WEB-INF/spring/root-context.xml
new file mode 100644
index 0000000..41509dd
--- /dev/null
+++ b/st/src/main/webapp/WEB-INF/spring/root-context.xml
@@ -0,0 +1,20 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/st/src/main/webapp/WEB-INF/views/board.jsp b/st/src/main/webapp/WEB-INF/views/board.jsp
new file mode 100644
index 0000000..974dbf6
--- /dev/null
+++ b/st/src/main/webapp/WEB-INF/views/board.jsp
@@ -0,0 +1,29 @@
+<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
+<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
+
+
+
+
+
+Insert title here
+
+
+
+
+ 글 번호 |
+ 글 제목 |
+ 글 작성자 |
+ 글 작성일 |
+
+
+
+ ${bvo.sno} |
+ ${bvo.title} |
+ ${bvo.writer} |
+ ${bvo.rdate} |
+
+
+
+
+
+
\ No newline at end of file
diff --git a/st/src/main/webapp/WEB-INF/views/home.jsp b/st/src/main/webapp/WEB-INF/views/home.jsp
new file mode 100644
index 0000000..7a2569e
--- /dev/null
+++ b/st/src/main/webapp/WEB-INF/views/home.jsp
@@ -0,0 +1,15 @@
+<%@ page language="java" contentType="text/html; charset=UTF-8"
+ pageEncoding="UTF-8"%>
+<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
+
+
+ Home
+
+
+
+ Hello world!
+
+
+ The time on the server is ${serverTime}.
+
+
diff --git a/st/src/main/webapp/WEB-INF/views/home2.jsp b/st/src/main/webapp/WEB-INF/views/home2.jsp
new file mode 100644
index 0000000..f248680
--- /dev/null
+++ b/st/src/main/webapp/WEB-INF/views/home2.jsp
@@ -0,0 +1,12 @@
+<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
+
+
+
+
+
+Insert title here
+
+
+ 여기는 home2
+
+
\ No newline at end of file
diff --git a/st/src/main/webapp/WEB-INF/views/view.jsp b/st/src/main/webapp/WEB-INF/views/view.jsp
new file mode 100644
index 0000000..aa70eec
--- /dev/null
+++ b/st/src/main/webapp/WEB-INF/views/view.jsp
@@ -0,0 +1,15 @@
+<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
+
+
+
+
+
+Insert title here
+
+
+ ${vo.title}
+ ${vo.writer}
+ ${vo.body}
+ ${vo.rdate}
+
+
\ No newline at end of file
diff --git a/st/src/main/webapp/WEB-INF/views/write.jsp b/st/src/main/webapp/WEB-INF/views/write.jsp
new file mode 100644
index 0000000..b965afd
--- /dev/null
+++ b/st/src/main/webapp/WEB-INF/views/write.jsp
@@ -0,0 +1,17 @@
+<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
+
+
+
+
+
+Insert title here
+
+
+
+
+
\ No newline at end of file
diff --git a/st/src/main/webapp/WEB-INF/web.xml b/st/src/main/webapp/WEB-INF/web.xml
new file mode 100644
index 0000000..066df96
--- /dev/null
+++ b/st/src/main/webapp/WEB-INF/web.xml
@@ -0,0 +1,47 @@
+
+
+
+
+
+ contextConfigLocation
+ /WEB-INF/spring/root-context.xml
+
+
+
+
+ org.springframework.web.context.ContextLoaderListener
+
+
+
+ encodingFilter
+ org.springframework.web.filter.CharacterEncodingFilter
+
+ encoding
+ utf-8
+
+
+
+
+ encodingFilter
+ /
+
+
+
+
+ appServlet
+ org.springframework.web.servlet.DispatcherServlet
+
+ contextConfigLocation
+ /WEB-INF/spring/appServlet/servlet-context.xml
+
+ 1
+
+
+
+ appServlet
+ /
+
+
+
diff --git a/st/src/test/resources/log4j.xml b/st/src/test/resources/log4j.xml
new file mode 100644
index 0000000..8715266
--- /dev/null
+++ b/st/src/test/resources/log4j.xml
@@ -0,0 +1,41 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/st/target/classes/com/a/ezn/BoardController.class b/st/target/classes/com/a/ezn/BoardController.class
new file mode 100644
index 0000000..2b8c1e1
Binary files /dev/null and b/st/target/classes/com/a/ezn/BoardController.class differ
diff --git a/st/target/classes/com/a/ezn/BoardVO.class b/st/target/classes/com/a/ezn/BoardVO.class
new file mode 100644
index 0000000..6dd3fba
Binary files /dev/null and b/st/target/classes/com/a/ezn/BoardVO.class differ
diff --git a/st/target/classes/com/a/ezn/HomeController.class b/st/target/classes/com/a/ezn/HomeController.class
new file mode 100644
index 0000000..1dde3e4
Binary files /dev/null and b/st/target/classes/com/a/ezn/HomeController.class differ
diff --git a/st/target/classes/com/a/ezn/TestController.class b/st/target/classes/com/a/ezn/TestController.class
new file mode 100644
index 0000000..64ddbe0
Binary files /dev/null and b/st/target/classes/com/a/ezn/TestController.class differ
diff --git a/st/target/classes/com/a/ezn/UserVO.class b/st/target/classes/com/a/ezn/UserVO.class
new file mode 100644
index 0000000..b0a6d2c
Binary files /dev/null and b/st/target/classes/com/a/ezn/UserVO.class differ
diff --git a/st/target/classes/com/a/ezn/repo/BoardRepository.class b/st/target/classes/com/a/ezn/repo/BoardRepository.class
new file mode 100644
index 0000000..657e1da
Binary files /dev/null and b/st/target/classes/com/a/ezn/repo/BoardRepository.class differ
diff --git a/st/target/classes/log4j2.xml b/st/target/classes/log4j2.xml
new file mode 100644
index 0000000..511eed3
--- /dev/null
+++ b/st/target/classes/log4j2.xml
@@ -0,0 +1,50 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/st/target/m2e-wtp/web-resources/META-INF/maven/ABC/ABC/pom.xml b/st/target/m2e-wtp/web-resources/META-INF/maven/ABC/ABC/pom.xml
new file mode 100644
index 0000000..5b6c17f
--- /dev/null
+++ b/st/target/m2e-wtp/web-resources/META-INF/maven/ABC/ABC/pom.xml
@@ -0,0 +1,207 @@
+
+ 4.0.0
+ ABC
+ ABC
+ 0.0.1-SNAPSHOT
+ war
+
+ 1.8
+ 5.2.3.RELEASE
+ 1.6.10
+ 1.7.30
+ 2.14.1
+
+
+
+
+ org.springframework
+ spring-context
+ ${org.springframework-version}
+
+
+ commons-logging
+ commons-logging
+
+
+
+
+ org.springframework
+ spring-webmvc
+ ${org.springframework-version}
+
+
+ commons-logging
+ commons-logging
+
+
+
+
+
+ org.springframework
+ spring-test
+ ${org.springframework-version}
+ test
+
+
+
+ org.springframework
+ spring-jdbc
+ ${org.springframework-version}
+
+
+
+
+ com.mysql
+ mysql-connector-j
+ 8.0.33
+
+
+
+ org.mybatis
+ mybatis
+ 3.4.6
+
+
+
+ org.mybatis
+ mybatis-spring
+ 1.3.2
+
+
+
+
+ org.aspectj
+ aspectjrt
+ ${org.aspectj-version}
+
+
+
+
+ org.slf4j
+ slf4j-api
+ ${org.slf4j-version}
+
+
+ org.apache.logging.log4j
+ log4j-api
+ ${log4j2-version}
+
+
+ org.apache.logging.log4j
+ log4j-core
+ ${log4j2-version}
+
+
+ org.apache.logging.log4j
+ log4j-slf4j-impl
+ ${log4j2-version}
+
+
+ org.slf4j
+ jcl-over-slf4j
+ ${org.slf4j-version}
+
+
+
+
+ javax.inject
+ javax.inject
+ 1
+
+
+
+
+ javax.servlet
+ servlet-api
+ 2.5
+ provided
+
+
+ javax.servlet.jsp
+ jsp-api
+ 2.1
+ provided
+
+
+ javax.servlet
+ jstl
+ 1.2
+
+
+
+
+ org.junit.jupiter
+ junit-jupiter-api
+ 5.7.1
+ test
+
+
+ org.junit.jupiter
+ junit-jupiter-engine
+ 5.7.1
+ test
+
+
+ org.junit.platform
+ junit-platform-launcher
+ 1.7.1
+ test
+
+
+ org.hamcrest
+ hamcrest
+ 2.2
+ test
+
+
+ org.mockito
+ mockito-core
+ 3.9.0
+ test
+
+
+ org.mockito
+ mockito-junit-jupiter
+ 3.9.0
+ test
+
+
+
+
+
+ maven-eclipse-plugin
+ 2.9
+
+
+ org.springframework.ide.eclipse.core.springnature
+
+
+ org.springframework.ide.eclipse.core.springbuilder
+
+ true
+ true
+
+
+
+ org.apache.maven.plugins
+ maven-compiler-plugin
+ 2.5.1
+
+ ${java-version}
+ ${java-version}
+ -Xlint:all
+ true
+ true
+
+
+
+ org.codehaus.mojo
+ exec-maven-plugin
+ 1.2.1
+
+ org.test.int1.Main
+
+
+
+
+
diff --git a/st/target/test-classes/log4j.xml b/st/target/test-classes/log4j.xml
new file mode 100644
index 0000000..8715266
--- /dev/null
+++ b/st/target/test-classes/log4j.xml
@@ -0,0 +1,41 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+