Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

component spring

@Component is an annotation that allows Spring to automatically detect our custom beans. In other words, without having to write any explicit code, Spring will: Scan our application for classes annotated with @Component. Instantiate them and inject any specified dependencies into them.
 
PREVIOUS NEXT
Tagged: #component #spring
ADD COMMENT
Topic
Name
3+6 =