Advertisement
Guest User

Untitled

a guest
Mar 1st, 2015
197
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. @SpringBootApplication
  2. @EntityScan(basePackages = { "com.mypp.domain" })
  3. @EnableJpaRepositories(basePackages = { "com.mypp.repository" })
  4. @EnableTransactionManagement
  5. @EnableGlobalMethodSecurity
  6. @EnableJpaAuditing
  7. @EnableConfigurationProperties
  8. public class ShelltorialsApplication {
  9.  
  10. public static void main(String[] args) {
  11. SpringApplication.run(ShelltorialsApplication.class, args);
  12. }
  13.  
  14. @Configuration
  15. public static class RepositoryConfig extends
  16. RepositoryRestMvcConfiguration {
  17.  
  18. @Override
  19. protected void configureRepositoryRestConfiguration(
  20. RepositoryRestConfiguration config) {
  21. config.exposeIdsFor(Tutorial.class);
  22. }
  23. }
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement