#. Problemhttps://www.acmicpc.net/problem/14890* The copyright in this matter is in BOJ #. Resolution Process 1. Read and understand problem 2. Redefine the problem + abstract 3. Create solution plan (select Algorithm, Data structure) 4. Prove the plan (check performance time and usage memory) 5. Carry out the plan 6. Look back on the plan and find a way to improve it #. Solve 주어진 조건에 맞게 구현을 잘 해..
#. Problemhttps://www.acmicpc.net/problem/6198* The copyright in this matter is in BOJ #. Resolution Process 1. Read and understand problem 2. Redefine the problem + abstract 3. Create solution plan (select Algorithm, Data structure) 4. Prove the plan (check performance time and usage memory) 5. Carry out the plan 6. Look back on the plan and find a way to improve it #. Solve N의 범위가 1 ≤ N ≤ 80,0..
| REST API ? API : Application Programming Interface- 개방 interface- OPEN API와 함께 거론되는 기술이 REST이며, 대부분의 OPEN API는 REST 방식 지원 REST : Representational State Transfer- 하나의 URI는 하나의 고유한 리소스를 대표하도록 설계- Resource + HTTP Method (CRUD 처리)- URI + GET / POST / PUT / DELETE * 기존 Service에서는 적합한 View를 Client에 전달했다면, REST Service는 JSON/XML 형식의 data만 전달 * 암묵적인 표준- 하이픈(-)은 사용 가능하지만 언더바(_)는 사용 X- 특별한 경우를 제외하고 대문자 ..
#. Problemhttps://www.acmicpc.net/problem/1976* The copyright in this matter is in BOJ #. Resolution Process 1. Read and understand problem 2. Redefine the problem + abstract 3. Create solution plan (select Algorithm, Data structure) 4. Prove the plan (check performance time and usage memory) 5. Carry out the plan 6. Look back on the plan and find a way to improve it #. Solve 동혁이가 목적을 달성하기 위해서는여..
#. Problemhttps://www.acmicpc.net/problem/13022* The copyright in this matter is in BOJ #. Resolution Process 1. Read and understand problem 2. Redefine the problem + abstract 3. Create solution plan (select Algorithm, Data structure) 4. Prove the plan (check performance time and usage memory) 5. Carry out the plan 6. Look back on the plan and find a way to improve it #. Solve 뭔가 조건이 복잡해보이지만..!중..
| 단위 테스트? 프로젝트를 진행하는 중간중간구현이 잘 되어가고 있는지 확인하기 위해테스트를 해주는게 중요하다. Spring에서는 개발과 테스트를 분리해서 해볼 수 있다.즉 src 영역과 test 영역이 나뉘어져 있다. 기존에는 아래와 같이 bean이 잘 등록되었는지 확인하곤 했었다..12345678910public class TestClient { public static void main(String[] args) { ApplicationContext ctx = new AnnotationConfigApplicationContext(ApplicationConfig.class); String[] beans = ctx.getBeanDefinitionNames(); for(String bean : beans..
프로젝트를 만드는 과정을 기록해두자 ! mybatis-spring Documentaion | 프로젝트 생성 프로젝트 생성 및 기본 설정 세팅은 아래 포스트를 참고해보자. [Spring] Spring@MVC 프로젝트 세팅하기 | 필요 라이브러리 설정 MVC project 로 생성하면 아래 라이브러리는 자동으로 세팅된다.- spring- spring web MyBatis 라이브러리- Mybatis- Mybatis-Spring MySQL 라이브러리- mysql spring-JDBC 라이브러리spring-jdbc 와 spring 연동을 위해 spring version 이 필요하다.- spring-jdbc /pom.xml12345678910111213141516171819202122232425 mysql mysq..
| MyBatis Setting Mybatis 세팅을 해보자 !_! 여기서는 Spring-MyBatis 연동이 아닌 순수 MyBatis만 사용할 것이다.순수 MyBatis가 아닌 mybatis-spring 세팅을 원한다면아래 글로 GoGo !![Spring-myBatis] Spring-myBatis 프로젝트를 만들어보자 ! || MyBatis MyBatis는 Java Object와 SQL문 사이의 자동 Mapping 기능을 지원하는ORM(Object Relational Mapping) Framework- MyBatis는 SQL을 별도의 파일로 분리해서 관리- Object와 SQL 사이의 parameter mapping 작업을 자동으로 해줌 순수 MyBatis 세팅을 위해 다운로드와 Documentatio..