eureka client registration done

This commit is contained in:
sumedh
2024-10-07 14:42:04 +05:30
parent 1c316767f4
commit dd8fc995d1
3 changed files with 23 additions and 0 deletions

View File

@@ -3,6 +3,8 @@ package com.olympus.apollo;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.EnableAsync;
import com.olympus.apollo.properties.StorageProperties;
@@ -10,6 +12,8 @@ import com.olympus.apollo.properties.StorageProperties;
@SpringBootApplication
@EnableConfigurationProperties(StorageProperties.class)
@EnableAsync
@Configuration
@EnableDiscoveryClient
public class ApolloApplication {
public static void main(String[] args) {

View File

@@ -35,6 +35,12 @@ gitlab:
token:
path: /mnt/apollo_storage/repository #C:\\repos\\olympus_ai\\gitClone
eureka:
client:
serviceUrl:
defaultZone: ${EUREKA_URI:http://localhost:8761/eureka}
instance:
preferIpAddress: true
#spring.jpa.show-sql=true
#spring.jpa.hibernate.ddl-auto=update