use of external configuration
Signed-off-by: Peter Siegmund <developer@mars3142.org>
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
<component name="ProjectRunConfigurationManager">
|
||||
<configuration default="false" name="Application" type="SpringBootApplicationConfigurationType" factoryName="Spring Boot">
|
||||
<option name="ACTIVE_PROFILES" value="dev" />
|
||||
<module name="timezone-service" />
|
||||
<option name="SPRING_BOOT_MAIN_CLASS" value="dev.mars3142.fhq.timezone_service.Application" />
|
||||
<method v="2">
|
||||
|
4
pom.xml
4
pom.xml
@@ -40,6 +40,10 @@
|
||||
<groupId>org.springframework.modulith</groupId>
|
||||
<artifactId>spring-modulith-starter-core</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework.cloud</groupId>
|
||||
<artifactId>spring-cloud-starter-bootstrap</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.projectlombok</groupId>
|
||||
<artifactId>lombok</artifactId>
|
||||
|
@@ -1,6 +0,0 @@
|
||||
server:
|
||||
port: 0
|
||||
|
||||
spring:
|
||||
config:
|
||||
import: optional:configserver:http://localhost:8888
|
@@ -1,5 +0,0 @@
|
||||
spring:
|
||||
application:
|
||||
name: timezone-service
|
||||
config:
|
||||
import: optional:configserver:http://config-service.web:8080
|
15
src/main/resources/bootstrap.yml
Normal file
15
src/main/resources/bootstrap.yml
Normal file
@@ -0,0 +1,15 @@
|
||||
eureka:
|
||||
client:
|
||||
register-with-eureka: true
|
||||
fetch-registry: true
|
||||
service-url:
|
||||
defaultZone: http://localhost:8761/eureka
|
||||
|
||||
spring:
|
||||
application:
|
||||
name: timezone-service
|
||||
cloud:
|
||||
config:
|
||||
discovery:
|
||||
enabled: true
|
||||
serviceId: config-service
|
Reference in New Issue
Block a user