java.lang.IllegalStateException: No primary or single unique constructor found for class
@GetMapping("/model_attribute")
public String modelAttribute(@ModelAttribute ModelAttributeDto dto){
//
}
@RegisterReflectionForBinding(RegisterReflectionForBindingDto.class)
@SpringBootApplication
public class DemoApplication{
//
}
The current machine does not support all of the following CPU features that are required by the image: [CX8, CMOV, FXSR, MMX, SSE, SSE2, SSE3, SSSE3, SSE4_1, SSE4_2, POPCNT, LZCNT, AVX, AVX2, BMI1, BMI2, FMA].
Please rebuild the executable with an appropriate setting of the -march option.
tasks.named("bootBuildImage") {
environment["BP_NATIVE_IMAGE_BUILD_ARGUMENTS"] = "-march=compatibility"
}
graalvmNative {
binaries.configureEach {
buildArgs.add("-march=compatibility")
}
}