본문 바로가기

전체 글163

Spring Framework Framework 아키텍처에 해당하는 골격 코드. 애플리케이션의 구조를 결정하는 아키텍처에 해당하는 코드를 프레임워크가 제공한다. 그렇기에 개발자는 비즈니스 로직에 집중 할 수 있다. Spring(MVC) - MVC 아키텍처를 제공하는 UI Layer 프레임워크 Spring(IoC, AOP) - IoC와 AOP모듈을 미용하여 Spring 컨테이너에서 동작하는 엔터프라이즈 비즈니스 컴포넌트를 개발 할 수 있다. Hibernate, JPA - ORM Framework. SQL 명령어를 프레임워크가 자체적으로 생성하여 DB연동을 처리. JPA는 모든 ORM의 공통 인터페이스를 제공하는 자바 표준 API. 탄생배경 EJB로 구현하는것은 매우 복잡하고 비싸며 많은 시간과 노력이 필요. 스프링 프레임워크는 POJO.. 2019. 6. 13.
POJO, Plain Old Java Object We wondered why people were so against using regular objects in their systems and concluded that it was because simple objects lacked a fancy name. So we gave them one, and it's caught on very nicely. - 마틴 파울러 그 어떤 모델, 관례 혹은 프레임워크를 따르지 않는 자바 객체를 뜻한다. POJO는 1. 미리 규정된 class들을 상속하지 않아야 하고 2. 미리 규정된 interface들을 구현하지 않아야 하며 3. 미리 규정된 어노테이션들을 포함하면 안된다. 다만 기술적 문제나 다른 이유들 때문에 POJO에 미리 규정된 어노테이션들을 사용하고 그.. 2019. 6. 2.
JPQL Update Query 작성시 발생한 오류 1. Not supported for DML operations [UPDATE.... Repository에 Update관련 Query마다 " @Modifying"을 추가시켜주었다. 위의 에러를 해결하니 2. TransactionRequiredException: Executing an update/delete query 위와 같은 에러가 발생했다. 서비스단에서 @Transactional을 추가해주니 해결이 되었다. 2019. 5. 7.
TCP/IP, DNS, URI, URL TCP/IP 4 Layers Application layer Host와 Destination간의 통신 규약을 정한다. 네트워크 상에서 유저 서비스를 제공하거나 어플리케이션 데이터를 전송하기 위해 규약들이 포함된다. HTTP FTP SMTP DHCP Transport Layer 유저간 통신(end to end)을 열어주고 정보의 구조나 네트워크에 관계없이 메시지 전송 서비스를 제공한다. 오류 검출 정정(error Control) 검출 – 전달자가 수신자에게 전달하는 동안 노이즈나 다른 장애로 인한 오류를 감지하는 것 정정- 오류를 감지하고 원본 데이터를 다시 구축하는 것. 네트워크 분할(Network Segmentation) 흐름제어(Flow Control) – 두 네트워크 사이에 흐르는 데이터의 속도를 .. 2019. 4. 25.
[Java]프로그래머스 더 맵게 import java.io.*; import java.util.*; class Main { public static void main(String[] args) { int[] scoville = {0,1}; int K = 3; System.out.println(solution(scoville, K)); } public static int solution(int[] scoville, int K) { int answer = 0; PriorityQueue pQueue = new PriorityQueue(); if (scoville.length 2019. 4. 24.
[Java]프로그래머스 카펫 ``` class Solution { public int[] solution(int brown, int red) { int[] answer = new int[2]; int sum = brown + red; for(int i = 3; i 2019. 4. 15.
[Java]프로그래머스 위장 ``` import java.util.*; class Solution { public int solution(String[][] clothes) { int answer = 0; HashMap hm = new HashMap(); for(int i =0; i 2019. 4. 15.
[Java]프로그래머스 쇠막대기 ``` import java.util.Stack; class Solution { public int solution(String arrangement) { int answer = 0; char[] arr = arrangement.toCharArray(); Stack st = new Stack(); for(int i = 0; i 2019. 4. 15.
[Java]프로그래머스 프린터 ``` import java.util.LinkedList; import java.util.Queue; class Solution { public int solution(int[] priorities, int location) { Queue q =new LinkedList(); for(int p:priorities) { q.offer(p); } int count=0; while(!q.isEmpty()) { int item = q.poll(); boolean check = true; for(int s:q) { if(item 2019. 4. 15.
728x90