Commit 682697e5 authored by Simon Reis's avatar Simon Reis
Browse files

SI-752 Serviceanpassung: version-controller.getVersionUsingGET (um...

SI-752 Serviceanpassung: version-controller.getVersionUsingGET (um frontendVersion erweitern) : backendVersion in config augenommen
parent bf6e2586
......@@ -20,12 +20,17 @@ import org.eclipse.openk.gridfailureinformation.model.Version;
import org.eclipse.openk.gridfailureinformation.repository.VersionRepository;
import org.eclipse.openk.gridfailureinformation.viewmodel.VersionDto;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;
import java.util.Optional;
@Service
public class VersionService {
@Value("${backend-version}")
public String backendVersion;
@Autowired
VersionRepository versionRepository;
......@@ -42,7 +47,7 @@ public class VersionService {
retVersion = new VersionDto();
retVersion.setDbVersion(Constants.DB_VERSION_NOT_PRESENT);
}
retVersion.setBackendVersion("00");
retVersion.setBackendVersion(backendVersion);
return retVersion;
}
}
......@@ -10,6 +10,7 @@
#
# SPDX-License-Identifier: EPL-2.0
# *******************************************************************************
backend-version: 0.0.1
spring:
datasource:
url: jdbc:postgresql://entopticadirx:5432/GridFailureInfoDevServer
......
......@@ -10,6 +10,7 @@
#
# SPDX-License-Identifier: EPL-2.0
# *******************************************************************************
backend-version: 0.0.1
spring:
datasource:
url: jdbc:postgresql://entopticadirx:5432/GridFailureInfoDevelop
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment