Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- spring.jpa.database=POSTGRESQL
- spring.datasource.platform=postgres
- spring.jpa.show-sql=true
- spring.jpa.hibernate.ddl-auto=create-drop
- spring.database.driverClassName=org.postgresql.Driver
- spring.datasource.url=jdbc:postgresql://localhost:5432/recargaCelular
- spring.datasource.username=postgres
- spring.datasource.password=admin
- server.port=8080
- @SpringBootApplication
- @EntityScan(basePackages = { "br.com.yacodes.model" })
- @EnableJpaRepositories(basePackages = { "br.com.yscodes.repository" })
- @ComponentScan(basePackages = { "br.com.yscodes.main" })
- public class SpringApplicationMain {
- public static void main(String[] args) {
- SpringApplication.run(SpringApplicationMain.class, args);
- }
- }
- <project xmlns="http://maven.apache.org/POM/4.0.0"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
- <modelVersion>4.0.0</modelVersion>
- <groupId>br.com.yscodes</groupId>
- <artifactId>sistema_recarga_celular_01</artifactId>
- <version>0.0.1-SNAPSHOT</version>
- <name>Sistema Recarga Celular 01</name>
- <parent>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-parent</artifactId>
- <version>1.3.1.RELEASE</version>
- </parent>
- <dependencies>
- <dependency>
- <groupId>org.postgresql</groupId>
- <artifactId>postgresql</artifactId>
- </dependency>
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-web</artifactId>
- </dependency>
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-data-rest</artifactId>
- </dependency>
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-data-jpa</artifactId>
- </dependency>
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-test</artifactId>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-tomcat</artifactId>
- <scope>provided</scope>
- </dependency>
- </dependencies>
- <build>
- <plugins>
- <plugin>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-maven-plugin</artifactId>
- </plugin>
- </plugins>
- </build>
Add Comment
Please, Sign In to add comment