Rework shellConversionService

- Replace old ConversionService impl with something more aligned
  with current boot code with partially shameless copy as
  shell is most likely working outside of web or webflux env
  by creating FormattingConversionService and hooking convertes
  from DefaultConversionService.
- This should work on most cases and giving user a hook
  to define their own service.
This commit is contained in:
Janne Valkealahti
2021-12-24 15:04:40 +00:00
parent 58792bc695
commit 7042d1f83b
3 changed files with 15 additions and 23 deletions

View File

@@ -41,6 +41,11 @@ class DomainObject {
public String getValue() {
return value;
}
@Override
public String toString() {
return "DomainObject [value=" + value + "]";
}
}
@Component