@Test public void withAnnotationOnArgumentAndCglibProxy() { ConfigurableApplicationContext ctx = new AnnotationConfigApplicationContext( ConfigWithCglibProxy.class, SampleService.class, LoggingAspect.class); SampleService sampleService = ctx.getBean(SampleService.class); sampleService.execute(new SampleDto()); sampleService.execute(new SampleInputBean()); sampleService.execute((SampleDto) null); sampleService.execute((SampleInputBean) null); }
/* (non-Javadoc) * @see org.springframework.boot.CommandLineRunner#run(java.lang.String[]) */ @Override public void run(String... args) throws Exception { service.sayHello(); }