Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @EnableAutoConfiguration
- @SpringBootApplication
- class PokeVleagueApplication {
- static void main(String[] args) {
- SpringApplication.run PokeVleagueApplication, args
- }
- }
- application.yml
- spring:
- datasource:
- url: ${JDBC_DATABASE_URL}
- username: ${JDBC_DATABASE_USERNAME}
- password: ${JDBC_DATABASE_PASSWORD}
- jpa:
- show-sql: true
- hibernate:
- ddl-auto: create
- @RequestMapping(value="/pokemon", produces = "application/json")
- @ResponseBody
- String getExistingPoke() {
- return "Hello World!"
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement