[SPRING]

카테고리 없음 2018. 5. 23. 21:55 |

hibernate.zip 압축을 풀어서

jap 파일들을

WebContent/WEB-INF/lib 디렉토리에 복사


mybatis hibernate

sqlMapConfig.xml hibernate.cfg.xml

MybatisManager.java HibernateManager.java


Hibernate : select idx,writer,memo,post_date from memo where writer like ?


Controller => Service => Model => View


개발완료 => 테스트(JUnit) => 납품 => 검수


Maven 빌드 도구




빌드툴 - Maven 메이븐 


메이븐의 기본 디렉토리

c:\User\사용자계정\.m2


이클립스

WebContent/WEB-INF/lib jar파일 복사


* 오류고치기

프로젝트 오른쪽클릭 => Maven => update Project

.m2 폴더에 있는것을 삭제하고, STS를 다시켠다


Spring boot - 설정이 최소화된 버전 (별로쓰이지 않음)


패키지이름

naver.com => com.naver

java.sun.com => com.sun.java



-sample 프로젝트에서 설정파일 복사 : 

1. pom.xml

2. resources 디렉토리

3. WEB-INF 디렉토리


* Java Build Path에서 tomcat을 추가할것



* home.jsp

1
2
3
4
5
6
7
8
9
10
11
12
13
14
<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>Home</title>
</head>
<body>
<h1>
    Hello world!  
</h1>
 
<P>  The time on the server is ${serverTime}. </P>
</body>
</html>
cs


* 외부에서는 WEB-INF를 들어갈 수가 없다 

Posted by 너래쟁이
: