コード例 #1
0
  @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);
  }
コード例 #2
0
ファイル: Application.java プロジェクト: steavenMonkey/ODS
 /* (non-Javadoc)
  * @see org.springframework.boot.CommandLineRunner#run(java.lang.String[])
  */
 @Override
 public void run(String... args) throws Exception {
   service.sayHello();
 }