admin管理员组文章数量:1398840
Using Spring Boot 3.3, I am trying to do this
import .springframework.boot.context.properties.ConfigurationProperties;
import .springframework.validation.annotation.Validated;
@Validated
@ConfigurationProperties("blah")
public record Blah(int foo) {
}
However, this fails with:
Caused by: .springframework.aop.framework.AopConfigException: Could not generate CGLIB subclass of class com.example.Blah: Common causes of this problem include using a final class or a non-visible class
It works without @Validated
. Is this combination not possible with records?
本文标签: javaSpring Boot 33 Validated ConfigurationProperties fails with AopConfigExceptionStack Overflow
版权声明:本文标题:java - Spring Boot 3.3 @Validated @ConfigurationProperties fails with AopConfigException - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744120197a2591702.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论