Grokking Spring Boot
Vote

0% completed

​

JDK Proxies and Class-Based Proxies

The booking service started this way after one setting changed, spring.aop.proxy-target-class=false:

*************************** APPLICATION FAILED TO START *************************** Description: The bean 'smtpEmailSender' could not be injected because it is a JDK dynamic proxy The bean is of type 'jdk.proxy2.$Proxy76' and implements: com.example.booking.notifications.EmailSender org.springframework.aop.SpringProxy org.springframework.aop.framework.Advised org.springframework.core.DecoratingProxy Expected a bean of type 'com.example.booking.notifications

.....

.....

.....

Like the course? Get enrolled and start learning!

Reading Progress

0%


Vote for new content