When Spring's @Validated annotation is used on a controller, the transaction name will be the proxied class name. #1574
Labels
estimate
Issue needing estimation
feature request
Suggestion for a new product enhancement or change
Investigate the following:
If a Spring controller class is annotated with
@Validated
, Spring will create a proxy class for the target controller. Because of this, the transaction name contains the "mangled" proxy class name and not the original name. For example:MyControlller$SpringCGLIB$$0
Possibly use something like https://docs.spring.io/spring-framework/docs/current/javadoc-api/org/springframework/util/ClassUtils.html#getUserClass(java.lang.Class) (or similar) to retrieve the original class name.
The text was updated successfully, but these errors were encountered: