Myeonghyeon-Lee
Myeonghyeon-Lee
@dilipkrish Using spring-context-indexer will index @Components and do component scanning at runtime. The @Component of a dependency library such as springfox-swagger2 is not indexed, so it is not registered in...
@dilipkrish [spring-context-indexer](https://docs.spring.io/spring/docs/5.1.2.RELEASE/spring-framework-reference/core.html#beans-scanning-index) The Spring Context Indexer scans classes that are annotated by `@Component` in the classpath at compile time and writes them to `META-INF/spring.components`. And, at runtime, only the classes...
@Diagoras I mean, For compatibility with spring-context-indexer, the Swagger configuration should be modified. ``` java @Configuration @Import({ SpringfoxWebMvcConfiguration.class, SwaggerCommonConfiguration.class }) // TODO: remove below: componentScan of external library does not...
@gyuwon 문제는 없을거 같군요 Setter 때문에 생성자에서 결정된 논리가 깨져서 객체가 생성되는 불편함 정도와 케이스에 따라 비효율적으로 객체 생성이 많이 발생할 수 있는 정도 일거 같습니다.
@gyuwon @jwChung 필요한 케이스가 몇개 모이면 추가하면 어떨까 싶습니다. 별도 repo 로 구성할 수도 있지만, 이 repo 에 모듈 추가해도 될거 같고요
@gyuwon java 로 치면 아래와 같은 코드일거 같습니다. ```java class Hello{ private Integer value1; private String value2; public Hello(Integer value1, String value2) { if (value1 == null) { value1 =...
@gyuwon 임의의 값 생성 중 null 도 포함되는 거로 생각했었는데요, AutoParams 에서는 null 은 생성하지 않고 있으니 저 코드에서 임의값이 생성될거 같군요
말씀하신 방법이 아래와 같이 생성하려는 마지막 매개변수에 마킹을 해서 알려주는 방식일까요? ```java @ParameterizedTest @AutoSource void test(String input1, String input2, @LastSource String input3, @Autoiwred TestRepository repository) { } ``` 아니면 아래처럼...
@gyuwon @jwChung 어떤 방법이 좋을지 의견 부탁드려요 애노테이션 이름도 부탁드립니다. 1. AutoSource 마지막 매개변수에 마킹 애노테이션을 붙인다. ```java @ParameterizedTest @AutoSource void test(String input1, String input2, @LastSource String input3, @Autoiwred TestRepository...
@jwChung `@Autowired` 를 포함해서 몇가지를 블랙리스트로 관리해야 되는군요