dddgen -p com.lguplus.media.content -a album,superalbum,series
dddgen -p com.lguplus.media.product -a product
I wanted to create the bounded contexts for naming content, product. and, then, source codes was created successfully.
but config class was duplicated per package. so, application starting was failed
public class ApiControllerAdvice {
@ExceptionHandler(MethodArgumentNotValidException.class)
public ResponseEntity<Map<String, String>> handleValidationExceptions(MethodArgumentNotValidException ex){
Map<String, String> errors = new HashMap<>();
ex.getBindingResult().getAllErrors()
.forEach(c -> errors.put(((FieldError) c).getField(), c.getDefaultMessage()));
return ResponseEntity.badRequest().body(errors);
}
}
Hi,
I have executed the ddgen command below like:
I wanted to create the bounded contexts for naming content, product. and, then, source codes was created successfully. but config class was duplicated per package. so, application starting was failed