Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Eclipse Projects
Eclipse openK User Modules
org.eclipse.openk-usermodules.gridFailureInformation.backend
Commits
73561174
Commit
73561174
authored
Oct 28, 2021
by
Tino Harnisch
Browse files
Changes Cloud
parent
2c6fc9b1
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
73561174
This diff is collapsed.
Click to expand it.
addressImport/src/main/java/org/eclipse/openk/gridfailureinformation/importadresses/config/SwaggerConfig.java
View file @
73561174
...
...
@@ -16,6 +16,7 @@ package org.eclipse.openk.gridfailureinformation.importadresses.config;
import
lombok.extern.log4j.Log4j2
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.boot.autoconfigure.condition.ConditionalOnProperty
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.Configuration
;
import
org.springframework.context.annotation.Profile
;
...
...
@@ -30,6 +31,7 @@ import javax.servlet.ServletContext;
@Configuration
@EnableSwagger2
@Profile
(
"!prod"
)
@ConditionalOnProperty
(
prefix
=
"swagger"
,
name
=
"enabled"
,
havingValue
=
"true"
,
matchIfMissing
=
false
)
public
class
SwaggerConfig
{
@Value
(
"${swagger.baseUrl:}"
)
...
...
addressImport/src/main/resources/application.yml
View file @
73561174
...
...
@@ -83,6 +83,9 @@ security.endpoint:
user
:
${GFI_MANUAL_ENDPOINTS_USERNAME}
password
:
${GFI_MANUAL_ENDPOINTS_PASSWORD}
swagger
:
enabled
:
true
---
spring
:
...
...
@@ -266,5 +269,6 @@ logging:
org.hibernate
:
ERROR
swagger
:
enabled
:
true
baseUrl
:
/addressImporter
mailExport/src/main/java/org/eclipse/openk/gridfailureinformation/mailexport/config/SwaggerConfig.java
View file @
73561174
...
...
@@ -16,6 +16,7 @@ package org.eclipse.openk.gridfailureinformation.mailexport.config;
import
lombok.extern.log4j.Log4j2
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.boot.autoconfigure.condition.ConditionalOnProperty
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.Configuration
;
import
org.springframework.context.annotation.Profile
;
...
...
@@ -30,6 +31,7 @@ import javax.servlet.ServletContext;
@Configuration
@EnableSwagger2
@Profile
({
"!test"
,
"!prod"
})
@ConditionalOnProperty
(
prefix
=
"swagger"
,
name
=
"enabled"
,
havingValue
=
"true"
,
matchIfMissing
=
false
)
public
class
SwaggerConfig
{
@Value
(
"${swagger.baseUrl:}"
)
...
...
mailExport/src/main/resources/application.yml
View file @
73561174
...
...
@@ -34,6 +34,9 @@ security.endpoint:
user
:
${GFI_MANUAL_ENDPOINTS_USERNAME}
password
:
${GFI_MANUAL_ENDPOINTS_PASSWORD}
swagger
:
enabled
:
true
---
spring
:
...
...
mailExport/src/main/resources/application_localdev.yml
View file @
73561174
...
...
@@ -46,6 +46,9 @@ security.endpoint:
user
:
${GFI_MANUAL_ENDPOINTS_USERNAME}
password
:
${GFI_MANUAL_ENDPOINTS_PASSWORD}
swagger
:
enabled
:
true
---
spring
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment