After creating a @ConfigurationProperties class, the applications fails on start with the message:
Failed to bind properties under 'test.prop' to com.company.products.TestConfProperties:
Reason: java.lang.IllegalStateException: Unable to create instance for com.company.products.TestConfProperties
This may be due to missing parameter name information
Action:
Update your application's configuration
Ensure that your compiler is configured to use the '-parameters' flag.
You may need to update both your build tool settings as well as your IDE.
(See https://github.com/spring-projects/spring-framework/wiki/Upgrading-to-Spring-Framework-6.x#parameter-name-retention)
Steps To Reproduce
Create a composite project with an add-on and application subprojects. The application should depend on the add-on.
Create the class in the base package of the add-on:
Environment
Jmix version: 2.4.1
Bug Description
After creating a @ConfigurationProperties class, the applications fails on start with the message:
Steps To Reproduce
import org.springframework.boot.context.properties.ConfigurationProperties; import org.springframework.boot.context.properties.bind.DefaultValue;
@ConfigurationProperties(prefix = "test.prop") public class TestConfProperties { String testProp;
}