Guest User

Untitled

a guest
Dec 26th, 2018
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.38 KB | None | 0 0
  1. spring.jpa.database=POSTGRESQL
  2. spring.datasource.platform=postgres
  3. spring.jpa.show-sql=true
  4. spring.jpa.hibernate.ddl-auto=create-drop
  5. spring.database.driverClassName=org.postgresql.Driver
  6. spring.datasource.url=jdbc:postgresql://localhost:5432/recargaCelular
  7. spring.datasource.username=postgres
  8. spring.datasource.password=admin
  9. server.port=8080
  10.  
  11. @SpringBootApplication
  12. @EntityScan(basePackages = { "br.com.yacodes.model" })
  13. @EnableJpaRepositories(basePackages = { "br.com.yscodes.repository" })
  14. @ComponentScan(basePackages = { "br.com.yscodes.main" })
  15. public class SpringApplicationMain {
  16.  
  17. public static void main(String[] args) {
  18.  
  19. SpringApplication.run(SpringApplicationMain.class, args);
  20. }
  21. }
  22.  
  23. <project xmlns="http://maven.apache.org/POM/4.0.0"
  24. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  25. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  26. <modelVersion>4.0.0</modelVersion>
  27. <groupId>br.com.yscodes</groupId>
  28. <artifactId>sistema_recarga_celular_01</artifactId>
  29. <version>0.0.1-SNAPSHOT</version>
  30. <name>Sistema Recarga Celular 01</name>
  31.  
  32.  
  33. <parent>
  34.  
  35. <groupId>org.springframework.boot</groupId>
  36. <artifactId>spring-boot-starter-parent</artifactId>
  37. <version>1.3.1.RELEASE</version>
  38.  
  39. </parent>
  40.  
  41. <dependencies>
  42.  
  43. <dependency>
  44. <groupId>org.postgresql</groupId>
  45. <artifactId>postgresql</artifactId>
  46. </dependency>
  47.  
  48.  
  49. <dependency>
  50. <groupId>org.springframework.boot</groupId>
  51. <artifactId>spring-boot-starter-web</artifactId>
  52. </dependency>
  53.  
  54. <dependency>
  55. <groupId>org.springframework.boot</groupId>
  56. <artifactId>spring-boot-starter-data-rest</artifactId>
  57. </dependency>
  58.  
  59. <dependency>
  60. <groupId>org.springframework.boot</groupId>
  61. <artifactId>spring-boot-starter-data-jpa</artifactId>
  62. </dependency>
  63.  
  64.  
  65. <dependency>
  66. <groupId>org.springframework.boot</groupId>
  67. <artifactId>spring-boot-starter-test</artifactId>
  68. <scope>test</scope>
  69. </dependency>
  70.  
  71. <dependency>
  72. <groupId>org.springframework.boot</groupId>
  73. <artifactId>spring-boot-starter-tomcat</artifactId>
  74. <scope>provided</scope>
  75. </dependency>
  76.  
  77. </dependencies>
  78.  
  79. <build>
  80. <plugins>
  81. <plugin>
  82. <groupId>org.springframework.boot</groupId>
  83. <artifactId>spring-boot-maven-plugin</artifactId>
  84. </plugin>
  85. </plugins>
  86. </build>
Add Comment
Please, Sign In to add comment