개요 patch 와 기능개선, 관련 lib versionup 된 최신 버전으로 변경 작업 target version : 2.1.3 작업내역 Springboot Config https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-2.1-Configuration-Changelog spring.main.allow-bean-definition-overriding= true 추가 webclient version 에 따른 java config class 수정 health check 수정 db elasticsearch redis kafka 설정 수정 kafka vserion 되면서 설정의 기본값이 변경 kafka.properties.ssl.endpoint.i..
Model Define Entity required Table 과 mapping 되는 model DB table 원형 데이터 column validation 은 필요시, 최소한으로 구성 not null length BaseEntity 구현 @DynamicUpdate 쿼리 성능에 영향 @MappedSuperclass @EntityListeners(AuditingEntityListener.class) Serializable 구현 DTO required data transper object : https://en.wikipedia.org/wiki/Data_transfer_object Entity 와 DTO는 1:N 관계. 1:1 mapping 되는 기본 DTO는 꼭 만들어야한다. service, control..
https://techbeacon.com/devops/6-best-practices-integration-testing-continuous-integration https://docs.spring.io/spring-boot/docs/current/reference/html/spring-boot-features.html#boot-features-testing https://docs.spring.io/spring/docs/current/spring-framework-reference/testing.html#integration-testing https://spring.io/guides/gs/testing-web/ https://www.jrebel.com/blog/how-to-use-java-integrati..
Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is java.lang.IllegalStateException: Cannot load environment] with root cause org.eclipse.jgit.errors.RepositoryNotFoundException: repository not found: /tmp/config-repo-8219433394714354233 최근에 spring cloud config 를 이용 중에 있다.신규 프로젝트의 설정관리를 위한 부분인데. 개발서버에서 위와 같은 에러..
what is swagger?Swagger | The World's Most Popular Framework for APIs. http://swagger.io/guidehttps://github.com/swagger-api/swagger-core/wiki/Annotations-1.5.XQuick Annotation OverviewNameDescription| @Api | Marks a class as a Swagger resource. |@ApiImplicitParamRepresents a single parameter in an API Operation.@ApiImplicitParamsA wrapper to allow a list of multiple ApiImplicitParam objects.@Ap..
http://blog.sonatype.com/2009/10/maven-tips-and-tricks-advanced-reactor-options/#.VvOjDvmLRaQhttps://books.sonatype.com/mvnref-book/reference/_using_advanced_reactor_options.htmlhttp://blog.akquinet.de/2010/05/26/mastering-the-maven-command-line-%E2%80%93-reactor-options/ Starting with the Maven 2.1 release, there are new Maven command line options which allow you to manipulate the way that Mave..
http://stackoverflow.com/questions/874903/how-can-i-force-javas-httpclient-to-accept-invalid-cookies HttpClient client = new HttpClient(); client.getParams().setParameter("http.protocol.single-cookie-header", true); client.getParams().setCookiePolicy(CookiePolicy.BROWSER_COMPATIBILITY); http://stackoverflow.com/questions/7459279/httpclient-warning-cookie-rejected-illegal-domain-attribute You can..
https://spring.io/blog/2014/07/28/spring-framework-4-1-spring-mvc-improvements JSONP is now supported with Jackson. For response body methods declare an @ControllerAdvice as shown below. For View-based rendering simply configure the JSONP query parameter name(s) on MappingJackson2JsonView.@ControllerAdvice private static class JsonpAdvice extends AbstractJsonpResponseBodyAdvice { public JsonpAdv..
http://stackoverflow.com/questions/19656496/multiple-slf4j-bindings-cause-error slf4j 를 이용한 로깅을 한다면. 로깅 구현체 di 에 주의 해야 한다. 나도 모르게 두개 이상의 로깅 구현체가 있다면, slf4j는 내가 선택한 로깅구현체를 이용 하지 않을 가능성이 있다.이런 경우는 di 들의 모든 참조여부를 확인 할수 밖에 없지만, 친절하게도 slf4 에러 로깅에 친절하게 정보가 나와 있다.
http://stackoverflow.com/questions/24130166/componentscan-basepackageclasses-vs-componentscan-basepackages-to-register-a-sin The full javadoc for that attribute readsType-safe alternative to basePackages() for specifying the packages to scan for annotated components. The package of each class specified will be scanned.Consider creating a special no-op marker class or interface in each package th..