Advertisement
Guest User

Untitled

a guest
Apr 24th, 2019
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.78 KB | None | 0 0
  1. import org.springframework.boot.SpringApplication;
  2. import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
  3. import org.springframework.boot.autoconfigure.SpringBootApplication;
  4. import org.springframework.boot.autoconfigure.domain.EntityScan;
  5. import org.springframework.context.annotation.ComponentScan;
  6. import org.springframework.context.annotation.Configuration;
  7. import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
  8.  
  9.  
  10. @EnableAutoConfiguration
  11. @Configuration
  12. @ComponentScan(basePackages = { "controllers","facades","repositories","services","util" })
  13. @EntityScan("entidades")
  14. @EnableJpaRepositories
  15.  
  16. public class DemoApplication {
  17.  
  18.     public static void main(String[] args) {
  19.         SpringApplication.run(DemoApplication.class, args);
  20.     }
  21.  
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement