@EnableAspectJAutoProxy not work with proxyTargetClass=false
问题 I am learning about Spring AOP at first time. I am reading about in this sites: Site2 and Site1 Following this I have made the next classes Main class: public class App { public static void main(String[] args) { AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(); context.register(AppConfig.class); context.refresh(); MessagePrinter printer = context.getBean(MessagePrinter.class); System.out.println(printer.getMessage()); } } App config class: @Configuration