Field based and Constructor based Circular dependency in Spring boot

后端 未结 0 1652
没有蜡笔的小新
没有蜡笔的小新 2021-02-05 18:25

@Component
public class RandomA {

@Autowired
public RandomB randB;


public RandomA()
{
    System.out.println("Bello");
}


public void get()
{

         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题