분류 전체보기
-
6. 마이바티스 연결.스프링 웹 개발 하기/스프링 개발 초기 설정. 2020. 1. 5. 21:28
마이바티스 공식 홈페이지. MyBatis – 마이바티스 3 | 시작하기 이제부터 다룰 스코프와 생명주기에 대해서 이해하는 것은 매우 중요하다. 스코프와 생명주기를 잘못 사용하는 것은 다양한 동시성 문제를 야기할 수 있다. 의존성 삽입 프레임워크는 쓰레드에 안전하도록 해준다. 트랜잭션 성질을 가지는 SqlSessions과 매퍼들 그리고 그것들을 직접 빈에 삽입하면 생명주기에 대해 기억하지 않아도 되게 해준다. DI프레임워크와 마이바티스를 사용하기 위해 좀더 많은 정보를 보기 위해서는 MyBatis-Spring이나 MyBatis mybatis.org 1. POM.xml 1 2 3 4 5 6 7 8 9 10 11 org.mybatis mybatis 3.4.1 org.mybatis mybatis-spring 1..
-
4.DB설정. -- postgresql,mysql,oracle스프링 웹 개발 하기/스프링 개발 초기 설정. 2020. 1. 5. 18:01
DB는 입맛에 따라 사용하시면 됩니다. 1.POM.xml 1 2 3 4 5 6 7 8 9 10 11 12 13 org.springframework spring-test ${org.springframework-version} org.springframework spring-jdbc ${org.springframework-version} 1)DB 설정. ●PostgreSQL 설정. 1 2 3 4 5 6 7 postgresql postgresql 9.0-801.jdbc4 ●orcle 설정.(오라클 repositories 도 설정 해야 한다.) 1 2 3 4 5 6 7 oracle http://maven.jahia.org/maven2 1 2 3 4 5 6 com.oracle ojdbc6 12.1.0.2 repo..
-
3.스프링 기본 설정.스프링 웹 개발 하기/스프링 개발 초기 설정. 2020. 1. 1. 21:56
1.자바 버전 설정. 1) 마우스 우클릭 후 Project Facets에 들어간다. 2) java Bulid Path에 들어간다. javaSE 1.8이 맞는지 확인한다. 틀릴 경우 edit를 눌러서 나와 맞는 jre를 등록 시켜준다. ●Add JARs.. : 프로젝트 밑의 jar파일을 등록시켜준다. ●Add Extenal JARs.. : 내 PC의 jar 파일을 등록 시켜준다. (이렇게 했을 시 다른 곳에서 프로젝트 할 때 같은 위치에 jar파일을 등록 해야 하기 때문에 잘 사용하지 않는다.) 2. 언어 환경 설정. 설정 이유 : 이걸 설정 할 경우 나중에 jsp html 등 만들때 encoding type이 고정적으로 UTF-8로 나오게 하기 위해서다.(안그럼 만들때마다 일일이 바꿔줘야 해서 귀찮다.)..
-
2.서버 톰캣 설정.스프링 웹 개발 하기/스프링 개발 초기 설정. 2020. 1. 1. 19:53
1. 톰캣 다운로드 Apache Tomcat® - Apache Tomcat 7 Software Downloads Welcome to the Apache Tomcat® 7.x software download page. This page provides download links for obtaining the latest version of Tomcat 7.0.x software, as well as links to the archives of older releases. Unsure which version you need? Specification versions tomcat.apache.org 1) 원하는 버전을 클릭 2) 해당 파일중 zip파일 window버전에 맞는 걸로 다운 받는다. 3)serv..
-
1.웹 개발 준비 및 git 연동.스프링 웹 개발 하기/스프링 개발 초기 설정. 2019. 12. 29. 17:40
Spring Legacy Project를 클릭. Project name 에 자신이 만들고자 하는 프로젝트 이름을 적는다. Spring MVC Project 클릭. (MVC 디자인 패턴 틀) 패키지 이름 짓는 방법. 총3가지가 나와야한다. 처음 : org 두번째 : 자신의 개발자 id(저같은 경우 woo), 팀이름,회사이름등 사용. 세번째 : 프로젝트 이름(무엇을 만들지 명확하지 않을 때는 web ,app으로 나누는 경우도 많습니다.) 제가 사용할 패키지명 : org.woo.web 이클립스 같은 경우 오른 쪽 하단의 다운로드 받는 것이 보인다. 항상 전부 받고나서 개발을 시작해야 한다. 안그러면 간혹 이클립스가 잘 안되는 현상이 일어나곤 한다. (처음 만들때 빨간색으로 프로젝트가 뜨는 경우 그런이유이다.)..