java: Internal error in the mapping processor: java.lang.NoClassDefFoundError: javax/xml/bind/JAXBE
IDEA报错如下:
Error:(19,8) java: Internal error in the mapping processor:
java.lang.NoClassDefFoundError: javax/xml/bind/JAXBElement at
org.mapstruct.ap.internal.model.source.builtin.JaxbElemToValue.<init>(JaxbElemToValue.java:41) at
org.mapstruct.ap.internal.model.source.builtin.BuiltInMappingMethods.<init>(BuiltInMappingMethods.java:49) at
org.mapstruct.ap.internal.processor.creation.MappingResolverImpl.<init>(MappingResolverImpl.java:99) at
org.mapstruct.ap.internal.processor.MapperCreationProcessor.process(MapperCreationProcessor.java:98) at
org.mapstruct.ap.internal.processor.MapperCreationProcessor.process(MapperCreationProcessor.java:76) at
org.mapstruct.ap.MappingProcessor.process(MappingProcessor.java:270) at
org.mapstruct.ap.MappingProcessor.processMapperTypeElement(MappingProcessor.java:250) at
org.mapstruct.ap.MappingProcessor.processMapperElements(MappingProcessor.java:216