Spring: define and wire a bean in the same class -


How can I set it up using Java config?

> For example:

  @bean public Fu Fu () {New Fu () return; } @Autowired Private Phu Fu; @Bayon Public Bar Bar () {Return to New Bar (FU); }   

Note: This code returns an error.

  @in publicfu foo () {return new fu ()); } @Bayon Public Barber () {Return to New Bar (FU); }    

Comments

Popular posts from this blog

asp.net - Procedure or function "Procedure name" expects a parameter "Param name" which was not supplied occurs rarely -

jsp - No mapping found for HTTP request with URI with annotation config Spring MVC and Jetty -

sql server ce - Is there some way to make sqlce3.5 and 4.0 co-exist in the C# project -