Skip to content

Commit 459ac72

Browse files
committed
Change dev profile to run Cassandra configurations from CassandraConfig.java in order to create keyspace on application startup
1 parent 61a1869 commit 459ac72

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

ebook-chat/src/main/java/br/com/jorgeacetozi/ebookChat/configuration/CassandraConfig.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
import org.springframework.data.cassandra.mapping.BasicCassandraMappingContext;
1111
import org.springframework.data.cassandra.mapping.CassandraMappingContext;
1212

13-
@Profile("test")
13+
@Profile({"dev","test"})
1414
@Configuration
1515
public class CassandraConfig extends AbstractCassandraConfiguration {
1616

ebook-chat/src/main/resources/application.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,6 @@ spring:
3131
redis:
3232
repositories:
3333
enabled: true
34-
cassandra:
35-
contact-points: localhost
36-
port: 9042
37-
keyspace-name: ebook_chat
38-
schema-action: CREATE_IF_NOT_EXISTS
3934

4035
flyway.enabled: true
4136
security.headers.cache: false

0 commit comments

Comments
 (0)