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 정리](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdna%2Fmy8tt%2FbtrGKcFSDl7%2FAAAAAAAAAAAAAAAAAAAAADl-x_xJkYavHF6_oWj4YqZM-fY6COPptq1uCRGb8vH6%2Fimg.png%3Fcredential%3DyqXZFxpELC7KVnFOS48ylbz2pIh7yKj8%26expires%3D1756652399%26allow_ip%3D%26allow_referer%3D%26signature%3DkZPm2PKxVYTf5zrZVwtfX%252BJNe0Q%253D)
[spring] annotation 정리
@restController -> response는 objectMapper를 사용해 json형태로 전달됨. @Around : 해당 controller 지정가능. @pointcut : 실행서비스 명으로 구분해서 실행을 묶어 지정가능. @SpringBootApplication @PostConstruct @PostConstruct, @PreDestory 애노테이션 특징 - 최신 스프링에서 가장 권장하는 방법이다. - 애노테이션 하나만 붙이면 되므로 매우 편리하다. - 패키지를 잘 보면 javax.annotation.PostConstruct 이다. 스프링에 종속적인 기술이 아니라 JSR-250 라는 자바 표준이다. 따라서 스프링이 아닌 다른 컨테이너에서도 동작한다. - 컴포넌트 스캔과 잘 어울린다. - 유일한 ..