我可以在@ConfigurationProperties注释中看到以下警告 When using @ConfigurationProperties it is recommended to add 'spring-boot-configuration-processor' to your classpath to generate configuration metadata 一切都很正常。
com.mycompany.notification.processor.service.batch.configuration.BatchConfiguration.steps; nested exception$$EnhancerBySpringCGLIB$$607a70b7.jobRepository(<generated>)
at org.springframework.batch.core.configuration.annotation.AbstractBatchConfi
如果我使用Initializer创建一个新的SpringBoot项目,将配置处理器包含在依赖项中,在Gradle任务上设置以下任务,package com.example.demoBootConfigurationAnnotationProcessor not file in classpath“中报错,尽管它肯定在类路径中。运行应用程序后,在build/classes/java/main/META-IN