Advertisement
Guest User

Untitled

a guest
Aug 24th, 2017
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. @EnableAutoConfiguration
  2. @SpringBootApplication
  3. class PokeVleagueApplication {
  4.  
  5. static void main(String[] args) {
  6. SpringApplication.run PokeVleagueApplication, args
  7. }
  8. }
  9.  
  10. application.yml
  11.  
  12. spring:
  13. datasource:
  14. url: ${JDBC_DATABASE_URL}
  15. username: ${JDBC_DATABASE_USERNAME}
  16. password: ${JDBC_DATABASE_PASSWORD}
  17. jpa:
  18. show-sql: true
  19. hibernate:
  20. ddl-auto: create
  21.  
  22. @RequestMapping(value="/pokemon", produces = "application/json")
  23. @ResponseBody
  24. String getExistingPoke() {
  25. return "Hello World!"
  26. }
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement