본문 바로가기

분류 전체보기92

(프로젝트 환경설정) 빌드하고 실행하기 빌드하고 실행 (서버 배포할 때) 프로젝트 파일 위치에서 (hello-spring 프로젝트) build를 설치한다. : ./gradlew build 다음으로 build 디렉터리 하위 libs로 이동한다. libs로 이동한 후, 프로젝트를 실행한다. 서버에 배포할 때 libs 디렉터리에 있는 프로젝트 SNAPSHOT을 배포한다. ./gradlew clean build : build 디렉터리를 삭제하겠다. 강의 주소 : https://www.inflearn.com/course/%EC%8A%A4%ED%94%84%EB%A7%81-%EC%9E%85%EB%AC%B8-%EC%8A%A4%ED%94%84%EB%A7%81%EB%B6%80%ED%8A%B8/dashboard 2021. 9. 20.
(프로젝트 환경설정) View 환경설정 Welcome Page 만들기 main/java/hello.hellospring/controller/HelloController package hello.hellospring.controller; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; import org.springframework.web.bind.annotation.GetMapping; @Controller public class HelloController { @GetMapping("hello") public String hello(Model model){ model.addAttribute("data","hello!!"); return.. 2021. 9. 20.
(프로젝트 환경설정) 라이브러리 살펴보기 스프링 부트 라이브러리 spring-boot-starter-web spring-boot-starter-tomcat : 톰캣(웹서버) spring-webmvc : 스프링 웹 MVC spring-boot-starter-thymeleaf : 타임리프 템플릿 엔진(View) spring-boot-starter(공통) : 스프링 부트 + 스프링 코어 + 로깅 spring-boot spring-core spring-boot-starter-logging logback, slf4j 테스트 라이브러리 spring-boot-starter-test junit : 테스트 프레임워크 mockito : 목 라이브러리 assertj : 테스트 코드를 좀 더 편하게 작성하게 도와주는 라이브러리 spring-test : 스프링 통합 .. 2021. 9. 20.
(프로젝트 환경설정) 프로젝트 생성 및 실행 프로젝트 생성 Spring 최근에는 많은 곳에서 spring boot를 이용해서 프로젝트를 만든다. Project Maven Project : 필요한 라이브러리를 땡겨오고 빌드 사이클까지 관리해주지만, 과거에 많이 사용 Gradle Project : 최근에 많이 사용되고 있는 중이다. Spring Boot SNAPSHOT : 점검중인 Boot 버전 Project Metadata Group : 기업명을 보통 적어준다. Artifact : 프로젝트명 Name, Description은 나둔다. ADD DEPENDENCIES... Spring기반으로 프로젝트를 시작할 때, 어떤 라이브러리를 사용할 것인가 지정하는 것 Spring Web : 웹 spring Thymeleaf : html을 만들어주는 templat.. 2021. 9. 20.
Point 와 String 1. 포인터 const char * weekday[]= {"Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"}; 여기서 const는 const char *가 아닌 const char에 적용 되므로 포인터가 가리키고 있는 값을 바꿀 수는 없지만 주소 값은 바꿀 수 있다. 2. string 특정 문자열로 자르고 싶을 때 #include #include using namespace std; string str_arr[1000]; int str_cnt; int main() { string a = "My name is kukaro"; char *str_buff = new char[1000]; strcpy(str_buff, a.c_str()); char *tok = strtok(s.. 2021. 9. 18.
Part 01 코딩 테스트, 무엇을 어떻게 준비할까? 코딩 테스트 준비를 돕는 다양한 서비스 알고리즘 공부할 때 Part 02를 이해한다. Part 03 관련 문제를 푼다. 백준 온라인 저지에서 관련 문제 50개를 푼다. 백준 온라인 저지 : 삼성 SW 역량테스트 대비 문제집 제공 프로그래머스 : 카카오 공채 문제집 제공 삼성전자 : DFS/BFS를 활용해야 하는 탐색과 시뮬레이션 문제 유형을 자주 출제한다. (상시 SW 역량테스트 A형 문제와 유사하게 출제 된다.) 복잡도 알고리즘의 성능을 나타내는 척도 시간 복잡도 특정한 크기의 입력에 대하여 알고리즘이 얼마나 오래 걸리는지를 의미 알고리즘을 위해 필요한 연산의 횟수 빅오 표기법을 사용한다. (가장 빠르게 증가하는 항만을 고려하는 표기법) int arr[5] = [3,5,1,2,4]; int summar.. 2021. 9. 14.