Skip to content

Commit

Permalink
Avoid autoloading jpa datasource (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelovbcfilho authored Jan 28, 2024
2 parents 693cd59 + 65a244f commit 75fcb68
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,15 @@
import com.amazonaws.services.dynamodbv2.AmazonDynamoDBClient;
import org.socialsignin.spring.data.dynamodb.repository.config.EnableDynamoDBRepositories;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.util.StringUtils;

@Configuration
@EnableAutoConfiguration(exclude = {DataSourceAutoConfiguration.class, HibernateJpaAutoConfiguration.class})
@EnableDynamoDBRepositories
(basePackages = "br.com.grupo63.serviceidentification.gateway")
public class DynamoDBConfig {
Expand Down

0 comments on commit 75fcb68

Please sign in to comment.