Skip to content

Instantly share code, notes, and snippets.

View ihoneymon's full-sized avatar

Kim Ji-Heon ihoneymon

View GitHub Profile
@ihoneymon
ihoneymon / 20190324-gradle-kotlin-script.kts
Created March 24, 2019 05:15
Gradle kotlin DSL 을 이용한 스프링 부트 애플리케이션 빌드스크립트 예제
buildscript {
extra["kotlinVersion"] = "1.3.11"
extra["springBootVersion"] = "2.1.1.RELEASE"
repositories {
maven("https://plugins.gradle.org/m2/")
}
dependencies {
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:${extra["kotlinVersion"]}")
@ihoneymon
ihoneymon / 20190323-spread-sheet-manager-by-kotlin.adoc
Created March 23, 2019 10:17
코틀린에서 엑셀시트 다루기

간단한 스프레드시트 처리기(by 코틀린(kotlin))

build.gradle.kts
plugins {
    id("org.springframework.boot") version "2.1.3.RELEASE"
    id("org.jetbrains.kotlin.jvm") version "1.2.71"
@ihoneymon
ihoneymon / 20190323-write-the-docs.adoc
Last active March 23, 2019 11:43
WTD(Write the docs) 밋업

20190323 WTD(Write The Docs)

Write the docs 소개

  • read the docs: 사람들이 조금 더 문서를 많이 읽었으면 좋겠다.

    • Eric holscher: 문서화를 주제로 커뮤니티를 시작하고 싶은데 여러분이라면 어떻게 하겠는가?

  • 2013 년부터 컨퍼런스가 시작되고 있다.

  • 다양한 행사를 진행하고 있다.

@ihoneymon
ihoneymon / 20190322-ngrinder-upload-file-script.adoc
Created March 22, 2019 05:54
nGrinder 파일 업로드 테스트 스크립트

20190322 nGrinder file upload(multipart/form-data) 기능 확인

nGrinder 를 이용한 성능테스트를 작성하고 있다. 이 과정에서 다른 시스템과 연계하는 과정에서 운영으로 넘어가기 위한 성능테스트를 준비하고 있는데, 파일업로드를 하는 과정이 필요했다.

이 구현코드는 여기저기 찾아보다가 grinder script gallery가 제일 깔끔하게 정리되어있다.

하나의 젠킨스에서 깃헙 저장소 여러 개를 빌드해야하는 경우

Note

젠킨스가 설치되어 있는 서버를 클라이언트로 보고 이 클라이언트에서 ssh 공개키를 여러벌 만들고 사용하는 저장소에 등록한 후 ssh Host 값을 가명(alias) 처리하여 젠킨스 한 곳에서 여러 저장소에 접근할 수 있도록 처리하는 방식이다.

20181108 SpringOne Tour - Seoul, By Pivotal

Table of Contents

한눈에 보는 정리

  • 코틀린을 이용해도 스프링 프레임워크는 잘 동작한다는 것

    • 코드도 간결하고

    • 맥북은 영어로만 코딩하면 빠르군. 한영 변환 비용은 꽤 비싸다.

  • 피보탈에서 '클라우드 네이티브(Cloud Native)' 에다가 '리액티브(Reactive)' 를 얹었고

[gradle] asciidoctor-gradle-plugin 1.5.9: projectdir attribute not found

Important

asciidoctor-gradle-plugin 1.5.9 사용하지 말자. 1.5.8 사용하자.

프로젝트에 Spring REST docs를 사용하고 있다. Spring REST docs는 테스트를 통해 생성된 아스키독(asciidoc) 조각을 모아 HTML로 렌더링을 하기 위해 아스키닥터(asciidoctor)를 사용한다.

그레이들에서는 asciidoctor-gradle-plugin 을 통해서 아스키닥터를 사용하는데 1.5.9 에서는 그레이들 프로젝트 디렉터리를 찾기 위해 사용한 속성명이 잘못되어 오류가 발생한다.

[spring-boot] Junit5 적용기

JUnit5 의존성 추가

JUnit5가 세상에 모습을 드러내놓은지는 제법 됐다. 새로운 프로젝트를 시작하면서 JUnit5 와 Spock 을 기반으로 한 테스트를 작성하고자 한다.

스프링 부트 2에서 JUnit5 에 대한 의존성을 추가하고 테스트를 작성하는 방법을 설명한다.

[springboot] 스프링 부트 플러그인: spring-boot-gradle-plugin

Note
Boot Spring Boot

Boot Spring Boot! 출간 이후 발표할 기회가 몇 번 있었고 그 때마다 개발자 인생은

@ihoneymon
ihoneymon / 20180917_spring_rest_docs_requestbuilder.adoc
Created September 17, 2018 03:28
Spring REST DOCs에서 pathParameters 를 사용하는 경우 `MockMvcRequestBuilders` 를 `RestDocumentationRequestBuilders` 로 변경한다.

[spring] REST Docs 사용중 urlTemplate not found. If you are using MockMvc did you use RestDocumentationRequestBuilders to build the request?

@ActiveProfiles("test")
@RunWith(SpringRunner.class)
@SpringBootTest
public class BookControllerTest {
    private MockMvc mockMvc;
    @Rule