일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 |
- 가상컴퓨팅
- 자바의정석
- data structure
- 암호학
- BFS
- 생성자
- DB
- python
- Algorithm
- 코딩테스트
- 코테
- 항해99
- 개발자취업
- 클라우드 컴퓨팅
- spring
- dfs
- generic class
- 크루스칼
- sql
- dbms
- JPA
- Queue
- 개발자취준
- 알고리즘
- javascript
- jsp
- 취리코
- 공개키 암호화
- 자료구조
- Java
- Today
- Total
목록개발 공부/Spring framework (15)
PLOD
현재 우리나라의 삼성 , 현대, LG 같은 대기업들과 네이버 , 라인, 카카오 같은 it 서비스 기업들 , 수 많은 SI 기업들은 대부분 java 기반의 sping framework를 사용하고 있다. 당연히 개발자로 취업을 희망하는 사람들은 (나 같은..) spring이 시장 점유율이 높다는 이유로 사용하고 있다. 하지만 근본적으로 spring을 사용하는 이유는 뭘까? 프레임워크는 말그대로 '뼈대나 근간을 이루는 코드들의 묶음' 이라고 할 수 있다. 중요한 점은 이뼈대가 왜 필요한 지이다. 개발자는 각 개개인의 능력 차이가 큰 직종이고 그렇기 때문에 개발자 구성에 따라 프로젝트 결과 역시 큰 차이를 낳는다. 이러한 차이를 극복하기 위해 나온것이 framework이다. 프레임워크를 이용한다는 의미는 프로..
웹 계층에서 가장 먼저 설계해야 되는 것은 주소 , 즉 URL(URI)이다.JSP는 tomcat 서버를 켰을 때 http://localhost:8080/...을 입력하게 되면 나오는 화면이다. 아래는 게시판 프로젝트에서 Controller를 설계 할 때 설정했던 예시이다. Task URL Method Parameter From URL 이동 전체 목록 /board/list GET 등록 처리 /board/register POST 모든 항목 입력화면 필요 이동 조회 /board/read GET bno=123 삭제 처리 /board/modify POST bno 입력화면 필요 이동 수정 처리 /board/remove POST 모든 항목 입력화면 필요 이동 Controller는 Service 객체와 같이 연동해야 ..
비즈니스 계층(service 계층, controller 계층) 비즈니스 계층은 고객의 요구사항을 반영하는 계층으로 프레젠테이션 계층과 영속 계층의 중간 다리 역할을 하게 된다. 영속 계층은 Database 기준으로 해서 설계를 나눠 구현하지만 비즈니스 계츠은 로직을 기준으로 해서 처리하게 된다. 비즈니스 계층은 Service ,ServiceImpl 클래스들을 설계하는 과정이다. Service 메서드 설계시 메서드 이름은 현실적인 로직의 이름을 붙이는 게 관례이다 . 명백하게 반환해야 할 데이터가 있는 select를 해야하는 메서드는 리턴 타입을 지정할 수 있다. 특정한 게시물을 가져오는 get() 메서드와 전체 리스트를 구하는 getList()의 경우 처음부터 리턴타입을 결정해서 진행할 수 있다. \ ※..
일반적으로 모델은 service 클래스와 DAO(Data Access Object)로 구성된다. DAO는 데이터베이스 연동을 담당하는 클래스이며 service 클래스는 DAO를 이용하여 실질적으로 비즈니스 로직을 처리하는 클래스이다. pom.xml 수정 Maven Repository: Search/Browse/Explore (mvnrepository.com) 이곳에서 Maven 설정 들을 추가할 수 있다. pom.xml에 필요한 설정들을 버전 체크 후 가져다 놓고 , Alt + F5를 누르면 maven dependency에서 추가된 것을 볼 수 있다. CRUD구현영속계층에 순서 테이블의 칼럼 구조를 반영하는 VO 클래스 생성을 먼저 생성하도록 하자. model(vo, DTO) 단계 BoardMapper ..
JSP JSP(JaveServer Pages) 는 서블릿과 동일 하게 웹 어플리케이션에서 동적 콘텐츠를 만들기 위해 제공되는 기술이다. JSP는 서블릿 프로그램에 HTML을 삽입하여 작성하여 웹으로 구현해준다. JSP는 자바 클래스로 구현하기 때문에 플랫폼에 독립적이고, 특정 서버에 종속되지 않으면서 멀티스레드를 기반으로 다수의 사용자 요청을 효율적으로 처리한다. 기존의 서블릿은 다음과 같은 단점이 있었다. 1. 정해진 규칙을 지켜서 작성해야 한다. (import, public클래스, HttpServlet 상속, 기본 생성자 , 콜백 메소드 오버라이딩) 2. web.xml 파일이나 어노테이션을 통해 요청 URL에 대한 매핑을 설정해야 한다. 3. 소스를 수정한 후에는 반드시 재컴파일을 하고 리로딩 될때까..
DBMS 란 데이터 저장소로 가장 쉽게 생각할 수 있는 것이 파일이다. 그런데 파일은 누군가가 삭제 하거나 외부의 물리적 충격, 또는 컴퓨터의 버그로 인해 손상된다면 파일에 저장된 데이터를 사용할 수 없다. 따라서 안전하고 효과적으로 데이터를 저장하고 관리할 수 있는 무언가가 필요한데, 그게 바로 데이터베이스 관리시스템 (Database Management System, DBMS) 이다. JDBC 란 데이터베이스 연동은 모든 프로그램 언어가 제공해야 하는 필수 기능 중 하나다. 자바에서 데이터 베이스 연동을 지원하는 패키지는 java.sql 이며 이를 JDBC API 라고 한다. JDBC(Java DataBase Connectivity)는 자바 프로그램에서 관계형 데이터베이스를 연동하기 위해 제공하는 표..