Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
package kr.hakdang.cassdio.web;

import kr.hakdang.cassdio.common.PackageConstants;
import kr.hakdang.cassdio.web.config.CassandraDefaultConfigurationProperties;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.ConfigurationPropertiesScan;
import org.springframework.boot.context.properties.EnableConfigurationProperties;

@EnableConfigurationProperties(CassandraDefaultConfigurationProperties.class)
@ConfigurationPropertiesScan(basePackages = PackageConstants.BASE_PACKAGE)
@SpringBootApplication(scanBasePackages = {PackageConstants.BASE_PACKAGE})
public class CassdioWebApplication {
Expand Down
12 changes: 12 additions & 0 deletions cassdio-web/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,18 @@ spring.profiles.default: release
spring.config:
import:
- classpath:/application-core.yml

# Default Cassandra cluster configuration
# Uncomment and configure the following settings to automatically register a default cluster on startup
#cassdio:
# cassandra:
# default:
# contactPoints: "127.0.0.1" # comma-separated list of contact points
# port: 9042 # Cassandra port
# localDatacenter: "datacenter1" # local datacenter name
# username: "" # optional: username for authentication
# password: "" # optional: password for authentication

server:
port: 20000
shutdown: graceful
Expand Down