• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Knute Snortum
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Piet Souris
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

Question regarding to spring doc 1.9.2 @Autowired

 
Ranch Hand
Posts: 1744
12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In this section, we have this :


The required attribute of @Autowired is recommended over the @Required annotation on setter methods.
The required attribute indicates that the property is not required for autowiring purposes. The property is ignored if it cannot be autowired.
...



I think it should be "required=false attribute indicates that the property is not required for autowiring purpose.
 
Saloon Keeper
Posts: 10433
223
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think you are correct. So what's your question?
 
Himai Minh
Ranch Hand
Posts: 1744
12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would recommend the Spring Community to update this part of the document.
But don't know any one from the community.
 
Stephan van Hulst
Saloon Keeper
Posts: 10433
223
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The usual way would be to file a bug report in their tracking system. I see they have a GitHub page. You can file a bug there: https://github.com/spring-projects/spring-framework/issues
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!