Skip to content

Commit 35aeb0e

Browse files
committed
Adjust jaxrs server url
1 parent 9ce3292 commit 35aeb0e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

jaxrs-swagger/src/main/java/de/taimos/dvalin/jaxrs/swagger/OpenAPIProvider.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ protected boolean hasAnnotation(Class<?> clz, Class<? extends Annotation> ann) {
6666

6767
protected void configureServerURL(OpenAPI openAPI) {
6868
String port = System.getProperty(SpringCXFProperties.JAXRS_BINDPORT, System.getProperty("svc.port", "8080"));
69-
String serverUrl = System.getProperty(SpringCXFProperties.SERVER_URL, "http://localhost:" + port);
69+
String serverUrl = System.getProperty(SpringCXFProperties.SERVER_URL, System.getProperty("jaxrs.protocol", "http") + "://localhost:" + port);
7070
String path = System.getProperty(SpringCXFProperties.JAXRS_PATH, "");
7171
if (!path.startsWith("/")) {
7272
serverUrl += "/";

jaxrs/src/main/java/de/taimos/dvalin/jaxrs/context/JAXRSContextImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
@Component
4848
public class JAXRSContextImpl implements DvalinRSContext {
4949

50-
@Value("${server.url:http://localhost:${jaxrs.bindport:${svc.port:8080}}}")
50+
@Value("${server.url:${jaxrs.protocol:http}://localhost:${jaxrs.bindport:${svc.port:8080}}}")
5151
private String serverURL;
5252

5353
@Override

0 commit comments

Comments
 (0)