Advertisement
Guest User

Untitled

a guest
Feb 9th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.95 KB | None | 0 0
  1. spring.datasource.url=jdbc:mysql://127.0.0.1:3306/tremplinspringlite
  2. spring.datasource.username=ecocea
  3. spring.datasource.password=ecocea
  4.  
  5.  
  6. logging.level.*=TRACE
  7.  
  8. spring.jpa.database=mysql
  9.  
  10. spring.jpa.hibernate.ddl-auto=update
  11.  
  12. spring.mvc.view.prefix=/WEB-INF/jsp/
  13. spring.mvc.view.suffix=.jsp
  14.  
  15.  
  16. <html>
  17. <body>Salut</body>
  18.  
  19. </html>
  20.  
  21.  
  22.  
  23. package com.ecocea.tbr;
  24.  
  25. import org.springframework.boot.SpringApplication;
  26. import org.springframework.boot.autoconfigure.SpringBootApplication;
  27.  
  28. @SpringBootApplication
  29. public class TremplinApplication {
  30.  
  31. public static void main(String[] args) {
  32. SpringApplication.run(TremplinApplication.class, args);
  33. }
  34. }
  35.  
  36.  
  37.  
  38. package com.ecocea.tbr.Controllers;
  39.  
  40. import org.springframework.stereotype.Controller;
  41. import org.springframework.web.bind.annotation.RequestMapping;
  42.  
  43. @Controller
  44. public class ControllerTest {
  45. @RequestMapping("/")
  46. public String test() {
  47. return "test";
  48. }
  49. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement