Guest User

Untitled

a guest
Dec 15th, 2018
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.82 KB | None | 0 0
  1. spring.jpa.hibernate.ddl-auto=create
  2. spring.jpa.properties.hibernate.temp.use_jdbc_metadata_defaults = false
  3. spring.jpa.database-platform=org.hibernate.dialect.PostgreSQL9Dialect
  4. spring.datasource.url=jdbc:postgresql://localhost:5432/db_notespesa
  5. spring.datasource.username=postgres
  6. spring.datasource.password=password
  7.  
  8. package notaSpese;
  9.  
  10. import org.springframework.boot.SpringApplication;
  11. import org.springframework.boot.autoconfigure.SpringBootApplication;
  12.  
  13. @SpringBootApplication
  14. public class Application {
  15.  
  16. public static void main(String[] args) {
  17. SpringApplication.run(Application.class, args);
  18. }
  19.  
  20. }
  21.  
  22. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  23. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  24. <modelVersion>4.0.0</modelVersion>
  25.  
  26. <groupId>notaSpeseNew</groupId>
  27. <artifactId>notaSpeseNew</artifactId>
  28. <version>0.0.1-SNAPSHOT</version>
  29. <packaging>jar</packaging>
  30.  
  31. <name>notaSpeseNew</name>
  32. <url>http://maven.apache.org</url>
  33.  
  34. <properties>
  35. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  36. <maven.compiler.source>1.8</maven.compiler.source>
  37. <maven.compiler.target>1.8</maven.compiler.target>
  38. </properties>
  39.  
  40. <parent>
  41. <groupId>org.springframework.boot</groupId>
  42. <artifactId>spring-boot-starter-parent</artifactId>
  43. <version>2.1.1.RELEASE</version>
  44. </parent>
  45.  
  46. <dependencies>
  47. <dependency>
  48. <groupId>junit</groupId>
  49. <artifactId>junit</artifactId>
  50. <scope>test</scope>
  51. </dependency>
  52. <!-- https://mvnrepository.com/artifact/postgresql/postgresql -->
  53. <dependency>
  54. <groupId>postgresql</groupId>
  55. <artifactId>postgresql</artifactId>
  56. <version>9.1-901-1.jdbc4</version>
  57. </dependency>
  58. <dependency>
  59. <groupId>org.hibernate.javax.persistence</groupId>
  60. <artifactId>hibernate-jpa-2.1-api</artifactId>
  61. <version>1.0.0.Final</version>
  62. </dependency>
  63. <dependency>
  64. <groupId>org.springframework.boot</groupId>
  65. <artifactId>spring-boot-starter-web</artifactId>
  66. </dependency>
  67. <dependency>
  68. <groupId>org.springframework.boot</groupId>
  69. <artifactId>spring-boot-starter-data-jpa</artifactId>
  70. </dependency>
  71. <dependency>
  72. <groupId>org.springframework.boot</groupId>
  73. <artifactId>spring-boot-starter-test</artifactId>
  74. <scope>test</scope>
  75. </dependency>
  76. <dependency>
  77. <groupId>org.hibernate</groupId>
  78. <artifactId>hibernate-core</artifactId>
  79. <version>5.2.1.Final</version>
  80. </dependency>
  81. </dependencies>
  82.  
  83. <build>
  84. <plugins>
  85. <plugin>
  86. <groupId>org.springframework.boot</groupId>
  87. <artifactId>spring-boot-maven-plugin</artifactId>
  88. </plugin>
  89. </plugins>
  90. </build>
  91.  
  92. </project>
Add Comment
Please, Sign In to add comment