Spring

    [spring batch] job parameter 공백(space) 포함하는 경우.

    https://stackoverflow.com/questions/43276454/passing-argument-with-spaces-to-spring-batch-commandlinejobrunner Passing argument with spaces to Spring batch CommandLineJobRunner In configuring the spring batch jobs, I have a need to pass argument to CommandLineJobRunner which have spaces. For example : java -cp "../../myproject.jar" org.springframework.batch.core.launch. stackoverflow.com 잘못된 예제_..

    UriComponentsBuilder

    https://bepoz-study-diary.tistory.com/183 [Spring] UriComponentsBuilder 사용하기 UriComponentsBuilder는 여러개의 파라미터를 이용하여 URL를 작성할 때에 굉장히 편하게 작성할 수 있게끔 도와준다. docs.spring.io/spring/docs/current/javadoc-api/org/springframework/web/util/UriComponen.. bepoz-study-diary.tistory.com

    [spring] annotation 정리

    [spring] annotation 정리

    @restController -> response는 objectMapper를 사용해 json형태로 전달됨. @Around : 해당 controller 지정가능. @pointcut : 실행서비스 명으로 구분해서 실행을 묶어 지정가능. @SpringBootApplication @PostConstruct @PostConstruct, @PreDestory 애노테이션 특징 - 최신 스프링에서 가장 권장하는 방법이다. - 애노테이션 하나만 붙이면 되므로 매우 편리하다. - 패키지를 잘 보면 javax.annotation.PostConstruct 이다. 스프링에 종속적인 기술이 아니라 JSR-250 라는 자바 표준이다. 따라서 스프링이 아닌 다른 컨테이너에서도 동작한다. - 컴포넌트 스캔과 잘 어울린다. - 유일한 ..