Advertisement
Guest User

Untitled

a guest
Sep 17th, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. @SpringBootApplication
  2. public class EcommerceApplication {
  3.  
  4. public static void main(String[] args) {
  5. SpringApplication.run(EcommerceApplication.class, args);
  6. }
  7. }
  8.  
  9.  
  10. @Controller
  11. @RequestMapping(value = "/")
  12. public class HomeController {
  13.  
  14. @GetMapping
  15. public String index() {
  16. return "index";
  17. }
  18. }
  19.  
  20. server.port=8080
  21. spring.application.name=Bootstrap Spring Boot
  22. spring.thymeleaf.cache=false
  23. spring.thymeleaf.enabled=true
  24. spring.thymeleaf.prefix=classpath:/templates/
  25. spring.thymeleaf.suffix=.html
  26. spring.datasource.driver-class-name=org.h2.Driver
  27. spring.datasource.url=jdbc:h2:mem:bootapp;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE
  28. spring.datasource.username=testuser
  29. spring.datasource.password=testpassword
  30. server.error.path=/error
  31. server.error.whitelabel.enabled=false
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement