Guest User

Untitled

a guest
Jan 24th, 2019
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.84 KB | None | 0 0
  1. server.port=8080
  2. spring.thymeleaf.prefix=classpath:/templates/
  3. spring.thymeleaf.suffix=.html
  4. spring.thymeleaf.mode=LEGACYHTML5
  5. spring.thymeleaf.encoding=UTF-8
  6. spring.thymeleaf.content-type=text/html
  7. spring.thymeleaf.cache=false
  8.  
  9. spring.datasource.url=jdbc:mysql://127.0.0.1/springboot?characterEncoding=UTF-8&autoReconnect=true&useSSL=false
  10. spring.datasource.username=root
  11. spring.datasource.password=root
  12. spring.datasource.driverClassName=com.mysql.jdbc.Driver
  13.  
  14. spring.datasource.max-active=5
  15. spring.datasource.max-idle=2
  16. spring.datasource.min-idle=1
  17. spring.datasource.initial-size=1
  18. spring.datasource.initialize=false
  19. spring.datasource.test-on-borrow=false
  20. spring.datasource.test-on-return=false
  21. spring.datasource.test-while-idle=true
  22. #spring.datasource.max-wait-millis=30000
  23. spring.datasource.validation-query=SELECT 1
  24. spring.datasource.time-between-eviction-runs-millis=20000
  25. spring.datasource.min-evictable-idle-time-millis=28700
  26.  
  27. # Specify the DBMS
  28. spring.jpa.database = MYSQL
  29. # Hibernate ddl auto (create, create-drop, update)
  30. spring.jpa.hibernate.ddl-auto=update
  31. spring.jpa.hibernate.dialect=org.hibernate.dialect.MySQL5Dialect
  32.  
  33. <?xml version="1.0" encoding="UTF-8"?>
  34. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  35. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  36. <modelVersion>4.0.0</modelVersion>
  37.  
  38. <groupId>com.example</groupId>
  39. <artifactId>demo</artifactId>
  40. <version>0.0.1-SNAPSHOT</version>
  41. <packaging>jar</packaging>
  42.  
  43. <name>demo</name>
  44. <description>Demo project for Spring Boot</description>
  45.  
  46. <parent>
  47. <groupId>org.springframework.boot</groupId>
  48. <artifactId>spring-boot-starter-parent</artifactId>
  49. <version>1.3.3.RELEASE</version>
  50. <relativePath/> <!-- lookup parent from repository -->
  51. </parent>
  52.  
  53. <properties>
  54. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  55. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  56. <java.version>1.8</java.version>
  57. </properties>
  58.  
  59. <dependencies>
  60. <dependency>
  61. <groupId>org.springframework.boot</groupId>
  62. <artifactId>spring-boot-starter-aop</artifactId>
  63. </dependency>
  64. <dependency>
  65. <groupId>org.springframework.boot</groupId>
  66. <artifactId>spring-boot-starter-data-jpa</artifactId>
  67. </dependency>
  68. <dependency>
  69. <groupId>org.springframework.boot</groupId>
  70. <artifactId>spring-boot-starter-jdbc</artifactId>
  71. </dependency>
  72. <dependency>
  73. <groupId>org.springframework.session</groupId>
  74. <artifactId>spring-session</artifactId>
  75. </dependency>
  76. <dependency>
  77. <groupId>org.springframework.boot</groupId>
  78. <artifactId>spring-boot-starter-thymeleaf</artifactId>
  79. </dependency>
  80. <dependency>
  81. <groupId>org.springframework.boot</groupId>
  82. <artifactId>spring-boot-starter-web</artifactId>
  83. </dependency>
  84.  
  85. <dependency>
  86. <groupId>org.hibernate</groupId>
  87. <artifactId>hibernate-core</artifactId>
  88. <version>4.3.7.Final</version>
  89. </dependency>
  90.  
  91. <dependency>
  92. <groupId>mysql</groupId>
  93. <artifactId>mysql-connector-java</artifactId>
  94. <scope>runtime</scope>
  95. </dependency>
  96. <dependency>
  97. <groupId>org.springframework.boot</groupId>
  98. <artifactId>spring-boot-starter-test</artifactId>
  99. <scope>test</scope>
  100. </dependency>
  101. </dependencies>
  102.  
  103. <build>
  104. <plugins>
  105. <plugin>
  106. <groupId>org.springframework.boot</groupId>
  107. <artifactId>spring-boot-maven-plugin</artifactId>
  108. </plugin>
  109. </plugins>
  110. </build>
  111.  
  112.  
  113. </project>
Add Comment
Please, Sign In to add comment