source code for BAEL-3303

This commit is contained in:
Yavuz Tas
2020-01-11 14:14:04 +01:00
parent 0a369c4a16
commit 1d579ff74f
3 changed files with 78 additions and 0 deletions
@@ -0,0 +1,25 @@
package com.baeldung.beandefinitionoverrideexception;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;
@Configuration
public class TestConfiguration2 {
class TestBean2 {
private String name;
public String getName() {
return name;
}
}
@Bean
public TestBean2 testBean(){
return new TestBean2();
}
}