Relative Content

Tag Archive for springspring-boot

How to inject @Configuration to be seen in a JPA @Entity

src/main/resources/application.properties cdn.url = http://foo.mycompany.com cdn.prefix = reports CDN configuration @Configuration @ConfigurationProperties(prefix = “cdn”) @ConfigurationPropertiesScan @Builder @Data @NoArgsConstructor @AllArgsConstructor public class CDNConfig { private String url; private String prefix; } CDN JPA Entity. I would like to inject the values of CDNConfig which is getting populated on load into JPA Entity, which I am not able […]

Null key returned for cache operation and Parameter name information not available via reflection. Ensure to use ‘-parameters’ compiler flag

On updating our application to Spring Boot 3.2.5 and Spring framework 6.1.6. we are getting following Errors. ERROR c.a.s.t.c.e.ControllerExceptionHandler – java.lang.IllegalArgumentException: Name for argument of type [java.lang.String] not specified, and parameter name information not available via reflection. Ensure that the compiler uses the ‘-parameters’ flag. java.lang.IllegalArgumentException: Name for argument of type [java.lang.String] not specified, and […]