daily pastebin goal
20%
SHARE
TWEET

Untitled

a guest Apr 16th, 2018 41 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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`
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top