source code for BAEL-3303
This commit is contained in:
+25
@@ -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();
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user