Skip to content

Commit

Permalink
update configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
xlorne committed Jan 2, 2024
1 parent acf4cc6 commit e038648
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
package com.codingapi.example.infrastructure.jpa.config;

import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;


@EntityScan(basePackages = "com.codingapi.example.domain")
@EnableJpaRepositories(basePackages = "com.codingapi.example.infrastructure.jpa")
@Configuration
public class ExampleJpaConfiguration {


}
1 change: 1 addition & 0 deletions example-restapi/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
</properties>

<dependencies>

<dependency>
<groupId>com.codingapi.springboot</groupId>
<artifactId>example-infrastructure-jpa</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;


@SpringBootApplication
public class ExampleApplication {

Expand Down
1 change: 1 addition & 0 deletions example-restapi/src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@ spring.jpa.database-platform=org.hibernate.dialect.H2Dialect
spring.jpa.hibernate.ddl-auto=update
spring.jpa.show-sql=false

spring.main.allow-bean-definition-overriding=true

codingapi.security.ignore-urls=/open/**,/#/**,/,/**.css,/**.js,/**.svg,/**.png,/**.ico

0 comments on commit e038648

Please sign in to comment.