Guest User

Untitled

a guest
Apr 16th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. You need not put all your `@Configuration` into a single class. The `@Import` annotation can be used to import additional configuration classes. Alternatively, you can use `@ComponentScan` to automatically pick up all Spring components, including `@Configuration` classes.
  2.  
  3. `@EnableAutoConfiguration` attempts to automatically configure Spring application based on classpath (dependencies) and what beans you have defined.
  4.  
  5. `@SpringBootApplication` = `@Configuration` + `@EnableAutoConfiguration` + `@ComponentScan`
  6.  
  7. `@ImportResource` loads XML configuration files (springboot discourages usage of xmls though).
  8.  
  9. >If a bean has one constructor, you can omit the `@Autowired`
Add Comment
Please, Sign In to add comment