Welcome toVigges Developer Community-Open, Learning,Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
448 views
in Technique[技术] by (71.8m points)

micronaut - Custom TypeConverter that receives a few objects and converts them to another object

I'd like to create a custom TypeConverter that receives a few objects and converts them to another object. E.g. to convert (MyEntity, AdditionalEntity, locale) to MyDto.

Is there any way to pass a few objects to a TypeConverter except creating a DTO (MyEntity, AdditionalEntity, locale)?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

No, the conversion service only accepts a single object


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to Vigges Developer Community for programmer and developer-Open, Learning and Share
...